You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by lu...@apache.org on 2015/09/06 09:39:26 UTC
[20/50] [abbrv] incubator-kylin git commit: KYLIN-946,
fix [No cube] and [No job] bug when refresh page
KYLIN-946, fix [No cube] and [No job] bug when refresh page
Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/db4d1e87
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/db4d1e87
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/db4d1e87
Branch: refs/heads/master
Commit: db4d1e87a5e060d596f1bcb977dbcc57bf223bad
Parents: 623585f
Author: jiazhong <ji...@ebay.com>
Authored: Thu Aug 13 10:36:05 2015 +0800
Committer: jiazhong <ji...@ebay.com>
Committed: Thu Aug 13 10:36:05 2015 +0800
----------------------------------------------------------------------
webapp/app/js/model/projectModel.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/db4d1e87/webapp/app/js/model/projectModel.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/model/projectModel.js b/webapp/app/js/model/projectModel.js
index 7a94766..a23fba5 100644
--- a/webapp/app/js/model/projectModel.js
+++ b/webapp/app/js/model/projectModel.js
@@ -19,11 +19,11 @@
KylinApp.service('ProjectModel', function () {
this.projects = [];
- this.selectedProject = null;
+ this.selectedProject = "_null";
this.setSelectedProject = function (project) {
- if (this.projects.indexOf(project) > -1) {
+ if (this.projects.indexOf(project) > -1||!project) {
this.selectedProject = project;
}
};