From 371ff6a3e089ab14f6ec60edb70203b4acf97a6b Mon Sep 17 00:00:00 2001 From: liugang Date: Wed, 28 Jun 2023 15:24:19 +0800 Subject: [PATCH] * zin-pager: save page cookie when change record count of per page. --- lib/zin/zentao/pager.func.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zin/zentao/pager.func.php b/lib/zin/zentao/pager.func.php index 69766a2b4d..5d12144eab 100644 --- a/lib/zin/zentao/pager.func.php +++ b/lib/zin/zentao/pager.func.php @@ -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('', '', str_replace('', '', $pager->lang->pager->pageSize)), 'dropdown' => array('placement' => 'top')); + if(strpos(',short,', ",{$extra},") === false) $setting['items'][] = array('type' => 'size-menu', 'text' => str_replace('', '', str_replace('', '', $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}');