[frontend] Avoid JB2 to pick up all the hashchanges events
@@ -1534,6 +1534,7 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
% endif
var loadHash = function () {
+ if (window.location.pathname.indexOf('jobbrowser') > -1) {
var h = window.location.hash;
if (h.indexOf('#!') === 0) {
h = h.substr(2);
@@ -1551,6 +1552,7 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
default:
new Job(viewModel, {id: h}).fetchJob();
}
+ }
};
window.onhashchange = function () {
