mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
updated scrollToPost behaviour to no longer ajaxify loudly. Also updated call to checkPagePresence to fire before the topicDOM events begin, so if an in-topic search is conducted on a different topic from the current topic, the topicDOM behaviour continues. closes #3040
This commit is contained in:
@@ -58,10 +58,13 @@ $(document).ready(function() {
|
||||
require(['translator', 'search'], function(translator, search) {
|
||||
translator.load(config.defaultLang, data.template.name);
|
||||
renderTemplate(url, data.template.name, data, callback);
|
||||
search.topicDOM.end();
|
||||
});
|
||||
});
|
||||
|
||||
if (!quiet) {
|
||||
search.topicDOM.end();
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user