v1.18.x
barisusakli
parent 8276090d71
commit 90b89a488e

@ -5,6 +5,11 @@
$(document).ready(function() { $(document).ready(function() {
setupKeybindings(); 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)) { if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
require(['admin/modules/search'], function(search) { require(['admin/modules/search'], function(search) {
search.init(); search.init();

@ -25,7 +25,7 @@ app.cacheBuster = null;
app.load = function() { app.load = function() {
$('document').ready(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); ajaxify.end(url, app.template);
handleStatusChange(); handleStatusChange();

Loading…
Cancel
Save