ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akovale...@apache.org
Subject git commit: AMBARI-5338. Mirroring: JS error after deleting and creating dataset with the same name. (akovalenko)
Date Fri, 04 Apr 2014 10:13:52 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 9451ee052 -> 14b44ee20


AMBARI-5338. Mirroring: JS error after deleting and creating dataset with the same name. (akovalenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/14b44ee2
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/14b44ee2
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/14b44ee2

Branch: refs/heads/trunk
Commit: 14b44ee20a3fb741f7a935409f338f0f31c716bd
Parents: 9451ee0
Author: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Authored: Thu Apr 3 16:57:04 2014 +0300
Committer: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Committed: Fri Apr 4 13:09:28 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/main/mirroring/jobs_controller.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/14b44ee2/ambari-web/app/controllers/main/mirroring/jobs_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/mirroring/jobs_controller.js b/ambari-web/app/controllers/main/mirroring/jobs_controller.js
index 03a1fb8..ac36890 100644
--- a/ambari-web/app/controllers/main/mirroring/jobs_controller.js
+++ b/ambari-web/app/controllers/main/mirroring/jobs_controller.js
@@ -96,8 +96,10 @@ App.MainDatasetJobsController = Em.Controller.extend({
   },
 
   onDeleteSuccess: function() {
-    this.get('content').deleteRecord();
+    var dataset = this.get('content');
+    dataset.deleteRecord();
     App.store.commit();
+    dataset.get('stateManager').transitionTo('loading');
     this.set('content', null);
     App.router.get('mainMirroringController').set('selectedDataset', null);
     App.router.send('gotoShowJobs');


Mime
View raw message