minor, fix datetimepicker clear exception issue
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/26f4133f Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/26f4133f Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/26f4133f Branch: refs/heads/1.4-rc Commit: 26f4133fc9baaeea74b53499b6965cc998184861 Parents: 783d15a Author: janzhongi <jiazh...@ebay.com> Authored: Wed Feb 24 17:54:23 2016 +0800 Committer: janzhongi <jiazh...@ebay.com> Committed: Wed Feb 24 17:54:23 2016 +0800 ---------------------------------------------------------------------- webapp/app/js/directives/directives.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/26f4133f/webapp/app/js/directives/directives.js ---------------------------------------------------------------------- diff --git a/webapp/app/js/directives/directives.js b/webapp/app/js/directives/directives.js index 3f61310..1b51354 100644 --- a/webapp/app/js/directives/directives.js +++ b/webapp/app/js/directives/directives.js @@ -234,7 +234,7 @@ KylinApp.directive('kylinPagination', function ($parse, $q) { }); ctrl.$parsers.push(function (value) { - if (isNaN(value)) { + if (isNaN(value)|| value==null) { return value; } value = new Date(value.getFullYear(), value.getMonth(), value.getDate(), 0, 0, 0, 0);