From 83a817a2212a1706b7bb2486130cb9f448b3e201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 10 Oct 2016 19:43:29 +0300 Subject: [PATCH] use navigator selector --- public/src/modules/navigator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/modules/navigator.js b/public/src/modules/navigator.js index 5f162dc10f..965b3ba28e 100644 --- a/public/src/modules/navigator.js +++ b/public/src/modules/navigator.js @@ -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;