[jb] Default to first interface in case there is no hash on page load
@@ -1642,11 +1642,11 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
var loadHash = function () {
if (window.location.pathname.indexOf('jobbrowser') > -1 || $('#jobbrowserMiniComponents').is(':visible')) {
var h = window.location.hash;
- if (h.indexOf('#!') === 0) {
- h = h.substr(2);
+
+ h = h.indexOf('#!') === 0 ? h.substr(2) : '';
switch (h) {
case '':
- break;
+ h = 'jobs';
case 'slas':
case 'oozie-info':
case 'jobs':
@@ -1663,7 +1663,6 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
}
}
}
- }
};
window.onhashchange = function () {
