File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -230,8 +230,7 @@ class Hm_Handler_default_sort_order_setting extends Hm_Handler_Module {
230230 */
231231 public function process () {
232232 $ this ->out ('default_sort_order ' , $ this ->user_config ->get ('default_sort_order_setting ' , 'arrival ' ));
233- $ this ->out ('sort ' , $ this ->request ->get ['sort ' ] ?? null );
234- $ this ->out ('list_sort ' , $ this ->request ->get ['list_sort ' ] ?? null );
233+ $ this ->out ('list_sort ' , $ this ->request ->get ['sort ' ] ?? null );
235234 }
236235}
237236
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ async function nextPage() {
2727}
2828
2929async function previousPage ( ) {
30- const currentPage = $ ( ".pagination .current:first" ) . text ( ) ;
30+ const currentPage = $ ( ".pagination .current" ) . first ( ) . text ( ) ;
3131
3232 const previousPage = parseInt ( currentPage ) - 1 ;
3333
Original file line number Diff line number Diff line change @@ -145,8 +145,8 @@ function combined_sort_dialog($mod) {
145145
146146 $ res = '<select name="sort" style="width: 150px" class="combined_sort form-select form-select-sm ms-2"> ' ;
147147 foreach ($ sorts as $ name => $ val ) {
148- $ res .= '<option value=" ' .$ name .'" ' .($ mod ->get ('sort ' ) == $ name || $ mod -> get ( ' list_sort ' ) == $ name ? ' selected ' : '' ).'> ' .$ val .' ↓</option> ' ;
149- $ res .= '<option value="- ' .$ name .'" ' .($ mod ->get ('sort ' ) == ' - ' . $ name || $ mod -> get ( ' list_sort ' ) == '- ' .$ name ? ' selected ' : '' ).'> ' .$ val .' ↑</option> ' ;
148+ $ res .= '<option value=" ' .$ name .'" ' .($ mod ->get ('list_sort ' ) == $ name ? ' selected ' : '' ).'> ' .$ val .' ↓</option> ' ;
149+ $ res .= '<option value="- ' .$ name .'" ' .($ mod ->get ('list_sort ' ) == '- ' .$ name ? ' selected ' : '' ).'> ' .$ val .' ↑</option> ' ;
150150 }
151151 $ res .= '</select> ' ;
152152 return $ res ;
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ protected function output() {
3838 $ custom = '<form id="imap_filter_form" method="GET" class="d-flex align-content-center"> ' ;
3939 $ custom .= '<input type="hidden" name="page" value="message_list" /> ' ;
4040 $ custom .= '<input type="hidden" name="list_path" value=" ' .$ this ->html_safe ($ this ->get ('list_path ' )).'" /> ' ;
41+ $ custom .= '<input type="hidden" name="list_page" value=" ' .$ this ->html_safe ($ this ->get ('list_page ' )).'" /> ' ;
4142 $ custom .= '<input type="search" placeholder=" ' .$ this ->trans ('Search ' ).
4243 '" class="imap_keyword form-control form-control-sm" name="keyword" value=" ' .$ this ->html_safe ($ keyword ).'" /> ' ;
4344 $ custom .= '<select name="sort" class="imap_sort form-control form-control-sm"> ' ;
You can’t perform that action at this time.
0 commit comments