use tpl_url

v1.18.x
barisusakli 10 years ago
parent 02dbce57fb
commit 7a7aeb131e

@ -13,7 +13,7 @@ define('forum/category', [
var Category = {};
$(window).on('action:ajaxify.start', function(ev, data) {
if(data && data.url.indexOf('category') !== 0) {
if(data && data.tpl_url !== 'category') {
navigator.hide();
removeListeners();

@ -6,7 +6,7 @@ define('forum/home', function() {
var home = {};
$(window).on('action:ajaxify.start', function(ev, data) {
if (data.url !== '') {
if (data.tpl_url !== 'home') {
socket.removeListener('event:new_post', home.onNewPost);
}
});

@ -18,7 +18,7 @@ define('forum/topic', [
currentUrl = '';
$(window).on('action:ajaxify.start', function(ev, data) {
if(data.url.indexOf('topic') !== 0) {
if(data.tpl_url !== 'topic') {
navigator.hide();
$('.header-topic-title').find('span').text('').hide();
app.removeAlert('bookmark');

@ -6,7 +6,7 @@ define('forum/unread', ['forum/recent', 'topicSelect', 'forum/infinitescroll'],
var Unread = {};
$(window).on('action:ajaxify.start', function(ev, data) {
if(data.url.indexOf('unread') !== 0) {
if (data.tpl_url !== 'unread') {
recent.removeListeners();
}
});

Loading…
Cancel
Save