* zin-pager: save page cookie when change record count of per page.

This commit is contained in:
liugang
2023-06-28 15:24:19 +08:00
parent 53b2deddde
commit 371ff6a3e0
+1 -1
View File
@@ -45,7 +45,7 @@ function usePager(array $userSetting = null, string $pagerName = 'pager', string
else
{
$setting['items'][] = array('type' => 'info', 'text' => $pager->lang->pager->totalCountAB);
if(strpos(',short,', ",{$extra},") === false) $setting['items'][] = array('type' => 'size-menu', 'text' => str_replace('<strong>', '', str_replace('</strong>', '', $pager->lang->pager->pageSize)), 'dropdown' => array('placement' => 'top'));
if(strpos(',short,', ",{$extra},") === false) $setting['items'][] = array('type' => 'size-menu', 'text' => str_replace('<strong>', '', str_replace('</strong>', '', $pager->lang->pager->pageSize)), 'dropdown' => array('placement' => 'top'), 'itemProps' => array('onClick' => jsRaw("(e, item) => $.cookie.set('$pager->pageCookie', item.text)")));
$setting['items'][] = array('type' => 'link', 'page' => 'first', 'hint' => $pager->lang->pager->firstPage, 'icon' => 'icon-first-page');
$setting['items'][] = array('type' => 'link', 'page' => 'prev', 'hint' => $pager->lang->pager->previousPage, 'icon' => 'icon-angle-left');
$setting['items'][] = array('type' => 'info', 'text' => '{page}/{pageTotal}');