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

This commit is contained in:
Julian Lam
2016-01-23 09:47:59 -05:00
parent 85b4639015
commit 32466d8bb1
2 changed files with 4 additions and 5 deletions

View File

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

View File

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