This commit is contained in:
Barış Soner Uşaklı
2017-06-20 23:08:12 -04:00
parent 7fe239229d
commit 53a2a7244d
2 changed files with 3 additions and 5 deletions

View File

@@ -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();