浏览代码

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

Aleksandr Kovalenko 11 年之前
父节点
当前提交
14b44ee20a
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      ambari-web/app/controllers/main/mirroring/jobs_controller.js

+ 3 - 1
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');