mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 20:41:17 +01:00
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
This commit is contained in:
@@ -117,10 +117,9 @@ define('notifications', ['sounds', 'translator', 'components', 'navigator', 'ben
|
||||
function scrollToPostIndexIfOnPage(notifEl) {
|
||||
// Scroll to index if already in topic (gh#5873)
|
||||
var pid = notifEl.attr('data-pid');
|
||||
var tid = notifEl.attr('data-tid');
|
||||
var path = notifEl.attr('data-path');
|
||||
var postEl = components.get('post', 'pid', pid);
|
||||
if (path.startsWith(config.relative_path + '/post/') && pid && postEl.length && ajaxify.data.template.topic && parseInt(ajaxify.data.tid, 10) === parseInt(tid, 10)) {
|
||||
if (path.startsWith(config.relative_path + '/post/') && pid && postEl.length && ajaxify.data.template.topic) {
|
||||
navigator.scrollToIndex(postEl.attr('data-index'), true);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user