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

v1.18.x
Julian Lam 9 years ago
parent 85b4639015
commit 32466d8bb1

@ -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",

@ -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() {

Loading…
Cancel
Save