do not load next page if justifiedGallery() is not ready yet

This commit is contained in:
marijus
2014-09-12 21:04:43 +02:00
parent 59c537b06d
commit bd2139d16a
2 changed files with 5 additions and 4 deletions

View File

@@ -635,7 +635,7 @@ function photos_content(&$a) {
);
if(count($r)) {
$a->set_pager_total(count($r));
$a->set_pager_itemspage(60);
$a->set_pager_itemspage(5);
}
if($_GET['order'] === 'posted')
@@ -1168,7 +1168,7 @@ function photos_content(&$a) {
);
if(count($r)) {
$a->set_pager_total(count($r));
$a->set_pager_itemspage(60);
$a->set_pager_itemspage(5);
}
$r = q("SELECT `resource_id`, `id`, `filename`, type, `album`, max(`scale`) AS `scale` FROM `photo`