瀏覽代碼

[oozie] Refresh after save reloads the same workflow

Enrico Berti 11 年之前
父節點
當前提交
80e565b
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      apps/oozie/src/oozie/templates/editor/workflow_editor.mako

+ 8 - 0
apps/oozie/src/oozie/templates/editor/workflow_editor.mako

@@ -23,6 +23,14 @@ from django.utils.translation import ugettext as _
 
 ${ commonheader(_("Workflow Editor"), "Oozie", user) | n,unicode }
 
+<script type="text/javascript">
+  if (window.location.hash != "") {
+    if (window.location.hash.indexOf("workflow") > -1) {
+      location.href = "/oozie/editor/workflow/edit/?" + window.location.hash.substr(1);
+    }
+  }
+</script>
+
 
 <%dashboard:layout_toolbar>
   <%def name="skipLayout()"></%def>