Skip to content

Node.js based forum software built for the modern web

tweaked paginator block to toggle when text is updated, and use ready class instead of invisible

Julian Lam32466d8bb183
diff --git a/package.json b/package.json
index 9bdd2f9ecc..0559b9a6d2 100644
--- a/package.json
+++ b/package.json
@@ -52,8 +52,8 @@
"nodebb-plugin-spam-be-gone": "0.4.5",
"nodebb-rewards-essentials": "0.0.6",
"nodebb-theme-lavender": "3.0.2",
- "nodebb-theme-persona": "4.0.63",
- "nodebb-theme-vanilla": "5.0.32",
+ "nodebb-theme-persona": "4.0.64",
+ "nodebb-theme-vanilla": "5.0.33",
"nodebb-widget-essentials": "2.0.5",
"nodemailer": "2.0.0",
"nodemailer-sendmail-transport": "1.0.0",
diff --git a/public/src/modules/navigator.js b/public/src/modules/navigator.js
index 33d3599228..b17db23a14 100644
--- a/public/src/modules/navigator.js
+++ b/public/src/modules/navigator.js
@@ -89,12 +89,10 @@ define('navigator', ['forum/pagination', 'components'], function(pagination, com
return;
}
- $('.pagination-block').toggleClass('invisible', !flag);
+ $('.pagination-block').toggleClass('ready', flag);
}
navigator.update = function() {
- toggle(!!count);
-
var els = $(navigator.selector);
if (els.length) {
index = parseInt(els.first().attr('data-index'), 10) + 1;
@@ -120,6 +118,7 @@ define('navigator', ['forum/pagination', 'components'], function(pagination, com
}
navigator.updateTextAndProgressBar();
+ toggle(!!count);
};
navigator.updateTextAndProgressBar = function() {