moved topic search end to topics.js

v1.18.x
barisusakli 10 years ago
parent 2880a77a9f
commit 6d0d74a6e9

@ -61,12 +61,6 @@ $(document).ready(function() {
}); });
}); });
require(['search'], function(search) {
if (search.topicDOM.active && !url.startsWith('topic/')) {
search.topicDOM.end();
}
});
return true; return true;
}; };

@ -27,6 +27,14 @@ define('forum/topic', [
events.removeListeners(); events.removeListeners();
} }
if (!data.url.startsWith('topic/')) {
require(['search'], function(search) {
if (search.topicDOM.active) {
search.topicDOM.end();
}
});
}
}); });
Topic.init = function() { Topic.init = function() {

Loading…
Cancel
Save