mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-29 12:49:57 +03:00
fixes #2337 set correct per_page to avoid excessive requests
...and remove pagination-per-page trigger
This commit is contained in:
parent
789c062837
commit
c4e23c642f
2 changed files with 3 additions and 1 deletions
|
@ -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}",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue