浏览代码

HUE-6067 [responsive] The loaded job browser should respond to all the hashchange events

Enrico Berti 8 年之前
父节点
当前提交
da74068
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      apps/jobbrowser/src/jobbrowser/templates/job_browser.mako

+ 5 - 2
apps/jobbrowser/src/jobbrowser/templates/job_browser.mako

@@ -1108,11 +1108,14 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
             viewModel.interface(h);
             break;
           default:
+            var isJob = true;
             if (/oozie-oozi-W/.test(h)) { viewModel.interface('workflows'); }
             else if (/oozie-oozi-C/.test(h)) { viewModel.interface('schedules'); }
             else if (/oozie-oozi-B/.test(h)) { viewModel.interface('bundles'); }
-
-            new Job(viewModel, {id: h}).fetchJob();
+            else { isJob = false; }
+            if (isJob) {
+              new Job(viewModel, {id: h}).fetchJob();
+            }
         }
       }