use navigator selector

v1.18.x
Barış Soner Uşaklı 8 years ago
parent 5dbcd9cf3f
commit 83a817a221

@ -181,7 +181,7 @@ define('navigator', ['forum/pagination', 'components'], function(pagination, com
};
navigator.scrollTop = function(index) {
if ($('li[data-index="' + index + '"]').length) {
if ($(navigator.selector + '[data-index="' + index + '"]').length) {
navigator.scrollToPost(index, true);
} else {
ajaxify.go(generateUrl());
@ -192,7 +192,7 @@ define('navigator', ['forum/pagination', 'components'], function(pagination, com
if (parseInt(index, 10) < 0) {
return;
}
if ($('li[data-index="' + index + '"]').length) {
if ($(navigator.selector + '[data-index="' + index + '"]').length) {
navigator.scrollToPost(index, true);
} else {
index = parseInt(index, 10) + 1;

Loading…
Cancel
Save