mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 13:03:12 +02:00
use template name instead of url
sometimes topic.tpl can be rendered on a different url
This commit is contained in:
@@ -458,11 +458,9 @@ define('navigator', [
|
||||
};
|
||||
|
||||
function toggle(flag) {
|
||||
const path = ajaxify.removeRelativePath(window.location.pathname.slice(1));
|
||||
if (flag && (!path.startsWith('topic') && !path.startsWith('category'))) {
|
||||
if (flag && (!ajaxify.data.template.topic && !ajaxify.data.template.category)) {
|
||||
return;
|
||||
}
|
||||
|
||||
paginationBlockEl.toggleClass('ready', flag);
|
||||
paginationBlockEl.toggleClass('noreplies', count <= 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user