mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-08 06:14:54 +02:00
fixes #2337 set correct per_page to avoid excessive requests
...and remove pagination-per-page trigger
This commit is contained in:
@@ -303,7 +303,8 @@ $( document ).ready(function() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#pagination-per-page-"+pagination).trigger('click');
|
|
||||||
|
//$("#pagination-per-page-"+pagination).trigger('click');
|
||||||
|
|
||||||
if (has_group) {
|
if (has_group) {
|
||||||
advanced_filter_button_click();
|
advanced_filter_button_click();
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ const status_to_str = {
|
|||||||
|
|
||||||
const view_selector = '{$view_selector}';
|
const view_selector = '{$view_selector}';
|
||||||
const pagination = '{$pagination}';
|
const pagination = '{$pagination}';
|
||||||
|
per_page = parseInt(pagination);
|
||||||
|
|
||||||
months = [
|
months = [
|
||||||
"{'Jan'|@translate}",
|
"{'Jan'|@translate}",
|
||||||
|
|||||||
Reference in New Issue
Block a user