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/08/14 05:21:15 UTC

[10/50] [abbrv] incubator-kylin git commit: KYLIN-936, fix can't see each step's log at jobs page

KYLIN-936, fix can't see each step's log at jobs 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/5c040bd4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/5c040bd4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/5c040bd4

Branch: refs/heads/0.7
Commit: 5c040bd489f54a7922d45ca27fae49e17c19c479
Parents: e1e02cc
Author: jiazhong <ji...@ebay.com>
Authored: Thu Aug 6 15:34:38 2015 +0800
Committer: jiazhong <ji...@ebay.com>
Committed: Thu Aug 6 15:36:06 2015 +0800

----------------------------------------------------------------------
 webapp/app/js/model/jobListModel.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/5c040bd4/webapp/app/js/model/jobListModel.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/model/jobListModel.js b/webapp/app/js/model/jobListModel.js
index e588006..36fd083 100755
--- a/webapp/app/js/model/jobListModel.js
+++ b/webapp/app/js/model/jobListModel.js
@@ -18,7 +18,7 @@
 
 KylinApp.service('JobList', function (JobService, $q) {
   var _this = this;
-  this.jobs = [];
+  this.jobs = {};
 
   this.list = function (jobRequest) {
 
@@ -35,7 +35,6 @@ KylinApp.service('JobList', function (JobService, $q) {
           _this.jobs[id] = job;
         }
       });
-      _this.jobs = _this.jobs.concat(jobs);
       defer.resolve(jobs.length);
     },function(){
       defer.reject("failed to load jobs");
@@ -46,7 +45,7 @@ KylinApp.service('JobList', function (JobService, $q) {
   };
 
   this.removeAll = function () {
-    _this.jobs = [];
+    _this.jobs = {};
   };
 
 });