浏览代码

HUE-7266 [oozie] Do not change the URL when saving a coordinator of an integrated scheduler

Romain Rigaux 8 年之前
父节点
当前提交
0785cfdb20
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/oozie/src/oozie/static/oozie/js/coordinator-editor.ko.js

+ 1 - 1
apps/oozie/src/oozie/static/oozie/js/coordinator-editor.ko.js

@@ -248,7 +248,7 @@ var CoordinatorEditorViewModel = (function () {
             }
             }
             if (window.location.search.indexOf("coordinator") == -1 && !IS_HUE_4) {
             if (window.location.search.indexOf("coordinator") == -1 && !IS_HUE_4) {
               window.location.hash = '#coordinator=' + data.id;
               window.location.hash = '#coordinator=' + data.id;
-            } else if (IS_HUE_4) {
+            } else if (IS_HUE_4 && ! cb) { // cb from integrated scheduler
               hueUtils.changeURL('/hue/oozie/editor/coordinator/edit/?coordinator=' + data.id);
               hueUtils.changeURL('/hue/oozie/editor/coordinator/edit/?coordinator=' + data.id);
             }
             }
           }
           }