You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2016/03/27 03:32:07 UTC
[04/50] [abbrv] kylin git commit: minor,
fix datetimepicker clear exception issue
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.3.x
Commit: e366291c7eb0076ba89ab2a4e75bd1b164dde70e
Parents: 836b936
Author: janzhongi <ji...@ebay.com>
Authored: Wed Feb 24 17:48:20 2016 +0800
Committer: janzhongi <ji...@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);