Repository: kylin
Updated Branches:
  refs/heads/2.x-staging 2743175d0 -> 38548a25d


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/38548a25
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/38548a25
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/38548a25

Branch: refs/heads/2.x-staging
Commit: 38548a25d150168283be2105210fee640dbcd2c6
Parents: 2743175
Author: janzhongi <jiazh...@ebay.com>
Authored: Wed Feb 24 17:52:44 2016 +0800
Committer: janzhongi <jiazh...@ebay.com>
Committed: Wed Feb 24 17:52:44 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/38548a25/webapp/app/js/directives/directives.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/directives/directives.js 
b/webapp/app/js/directives/directives.js
index 2758e0f..d07cee1 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);

Reply via email to