Fixed pager showing "1" before loading collection

This commit is contained in:
Marcin Kurczewski 2014-09-21 08:05:34 +02:00
parent 7e1234e448
commit 42e3559cb4

View file

@ -154,6 +154,9 @@ App.Presenters.PagedCollectionPresenter = function(
}
function refreshPageList() {
if (typeof(totalPages) === 'undefined') {
return;
}
var pages = getVisiblePages();
$pageList.empty();
var lastPage = 0;