mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-30 19:30:04 +01:00
closes #4175
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user