Lines 182-187
Link Here
|
182 |
]; |
182 |
]; |
183 |
}, |
183 |
}, |
184 |
}; |
184 |
}; |
|
|
185 |
[% SET default_sort_column = "name" %] |
186 |
[% SET order_column_index = 0 %] |
185 |
patrons_table = $("#memberresultst").kohaTable({ |
187 |
patrons_table = $("#memberresultst").kohaTable({ |
186 |
"ajax": { |
188 |
"ajax": { |
187 |
[% SWITCH filter %] |
189 |
[% SWITCH filter %] |
Lines 198-207
Link Here
|
198 |
[% END %] |
200 |
[% END %] |
199 |
}, |
201 |
}, |
200 |
embed: ['extended_attributes'], |
202 |
embed: ['extended_attributes'], |
201 |
"order": [[ 1, "asc" ]], |
|
|
202 |
"iDeferLoading": 0, |
203 |
"iDeferLoading": 0, |
203 |
"columns": [ |
204 |
"columns": [ |
204 |
[% FOR column IN columns %] |
205 |
[% FOR column IN columns %] |
|
|
206 |
[% IF default_sort_column == column %] |
207 |
[% order_column_index = loop.count - 1%] |
208 |
[% END %] |
205 |
[% SWITCH column %] |
209 |
[% SWITCH column %] |
206 |
[% CASE 'cardnumber' %] |
210 |
[% CASE 'cardnumber' %] |
207 |
{ |
211 |
{ |
Lines 289-294
Link Here
|
289 |
[% UNLESS loop.last %],[% END %] |
293 |
[% UNLESS loop.last %],[% END %] |
290 |
[% END %] |
294 |
[% END %] |
291 |
], |
295 |
], |
|
|
296 |
"order": [[ [% order_column_index %], "asc" ]], |
292 |
'bAutoWidth': false, |
297 |
'bAutoWidth': false, |
293 |
'sPaginationType': 'full_numbers', |
298 |
'sPaginationType': 'full_numbers', |
294 |
"iDisplayLength": [% Koha.Preference('PatronsPerPage') | html %], |
299 |
"iDisplayLength": [% Koha.Preference('PatronsPerPage') | html %], |
295 |
- |
|
|