@ -5,6 +5,11 @@
$(document).ready(function() {
setupKeybindings();
// on page reload show correct tab if url has #
if (window.location.hash) {
$('.nav-pills a[href=' + window.location.hash + ']').tab('show');
}
if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
require(['admin/modules/search'], function(search) {
search.init();
@ -25,7 +25,7 @@ app.cacheBuster = null;
app.load = function() {
$('document').ready(function () {
var url = ajaxify.start(window.location.pathname.slice(1) + window.location.search, true);
var url = ajaxify.start(window.location.pathname.slice(1) + window.location.search + window.location.hash, true);
ajaxify.end(url, app.template);
handleStatusChange();