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/e366291c Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/e366291c Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/e366291c Branch: refs/heads/1.x-HBase1.1.3 Commit: e366291c7eb0076ba89ab2a4e75bd1b164dde70e Parents: 836b936 Author: janzhongi <jiazh...@ebay.com> Authored: Wed Feb 24 17:48:20 2016 +0800 Committer: janzhongi <jiazh...@ebay.com> Committed: Wed Feb 24 17:48:20 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/e366291c/webapp/app/js/directives/directives.js ---------------------------------------------------------------------- diff --git a/webapp/app/js/directives/directives.js b/webapp/app/js/directives/directives.js index 7b47137..ab4171b 100644 --- a/webapp/app/js/directives/directives.js +++ b/webapp/app/js/directives/directives.js @@ -220,7 +220,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);