From 8cc19fac6c0e54cf57d73b49ed3f5037b5f87b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 30 Jun 2023 15:13:30 -0400 Subject: [PATCH] add no replies class to navigator --- public/src/modules/navigator.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/src/modules/navigator.js b/public/src/modules/navigator.js index 1ac9035031..98c0752312 100644 --- a/public/src/modules/navigator.js +++ b/public/src/modules/navigator.js @@ -440,7 +440,7 @@ define('navigator', [ count = value; navigator.updateTextAndProgressBar(); setThumbToIndex(index); - toggle(count > 1); + toggle(count > 0); }; navigator.show = function () { @@ -464,6 +464,7 @@ define('navigator', [ } paginationBlockEl.toggleClass('ready', flag); + paginationBlockEl.toggleClass('noreplies', count <= 1); } navigator.delayedUpdate = function () { @@ -523,7 +524,7 @@ define('navigator', [ setThumbToIndex(index); } - toggle(count > 1); + toggle(count > 0); }; navigator.getIndex = () => index;