moved paginator progress bar into paginator block, better mobile handling, and hiding it on page load

This commit is contained in:
Julian Lam
2013-11-30 21:36:35 -05:00
parent b3b4d3c37d
commit b9f1176ec1
3 changed files with 10 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ var ajaxify = {};
}
};
var pagination;
var pagination, paginator_bar;
ajaxify.go = function (url, callback, template, quiet) {
// start: the following should be set like so: ajaxify.onchange(function(){}); where the code actually belongs
@@ -37,8 +37,10 @@ var ajaxify = {};
app.enterRoom('global');
pagination = pagination || document.getElementById('pagination');
paginator_bar = pagination ? document.body.querySelector('.progress-container') : undefined;
if (pagination) {
pagination.parentNode.style.display = 'none';
paginator_bar.style.display = 'none';
}
window.onscroll = null;