mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-01 00:27:50 +02:00
closes #5765
This commit is contained in:
@@ -15,8 +15,8 @@ define('forum/category', [
|
||||
], function (infinitescroll, share, navigator, categoryTools, sort, components, translator, topicSelect, pagination, storage) {
|
||||
var Category = {};
|
||||
|
||||
$(window).on('action:ajaxify.end', function (ev, data) {
|
||||
if (data.tpl_url !== 'category') {
|
||||
$(window).on('action:ajaxify.start', function (ev, data) {
|
||||
if (data.url && !data.url.startsWith('category/')) {
|
||||
navigator.disable();
|
||||
|
||||
removeListeners();
|
||||
|
||||
@@ -23,16 +23,14 @@ define('forum/topic', [
|
||||
Topic.replaceURLTimeout = 0;
|
||||
}
|
||||
|
||||
if (ajaxify.currentPage !== data.url) {
|
||||
if (data.url && !data.url.startsWith('topic/')) {
|
||||
navigator.disable();
|
||||
components.get('navbar/title').find('span').text('').hide();
|
||||
app.removeAlert('bookmark');
|
||||
|
||||
events.removeListeners();
|
||||
$(window).off('keydown', onKeyDown);
|
||||
}
|
||||
|
||||
if (data.url && !data.url.startsWith('topic/')) {
|
||||
require(['search'], function (search) {
|
||||
if (search.topicDOM.active) {
|
||||
search.topicDOM.end();
|
||||
|
||||
Reference in New Issue
Block a user