mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-05 12:01:17 +01:00
tweaked paginator block to toggle when text is updated, and use ready class instead of invisible
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user