Lines 245-250
Link Here
|
245 |
}; |
245 |
}; |
246 |
|
246 |
|
247 |
$(document).ready(function() { |
247 |
$(document).ready(function() { |
|
|
248 |
// Prepare DataTables settings |
249 |
var aLengthMenu = [10, 20, 50, 100, -1]; |
250 |
var aLengthMenuLabel = [10, 20, 50, 100, _("All")]; |
251 |
var patronsPerPage = [% Koha.Preference('PatronsPerPage') | html %]; |
252 |
for ( var i = 0; i < aLengthMenu.length; i++ ) { |
253 |
if ( aLengthMenu[i] == patronsPerPage ) { |
254 |
break; |
255 |
} |
256 |
if ( aLengthMenu[i] > patronsPerPage || aLengthMenu[i] == -1 ) { |
257 |
aLengthMenu.splice(i, 0, patronsPerPage); |
258 |
aLengthMenuLabel.splice(i, 0, patronsPerPage); |
259 |
break; |
260 |
} |
261 |
} |
262 |
|
248 |
[% IF table_loop %] |
263 |
[% IF table_loop %] |
249 |
$("#description").show(); |
264 |
$("#description").show(); |
250 |
[% ELSE %] |
265 |
[% ELSE %] |
Lines 256-261
Link Here
|
256 |
], |
271 |
], |
257 |
"aaSorting": [[ 0, "asc" ]], |
272 |
"aaSorting": [[ 0, "asc" ]], |
258 |
"sPaginationType": "full", |
273 |
"sPaginationType": "full", |
|
|
274 |
"aLengthMenu": [aLengthMenu, aLengthMenuLabel], |
275 |
"pageLength": patronsPerPage, |
259 |
"autoWidth": false |
276 |
"autoWidth": false |
260 |
})); |
277 |
})); |
261 |
$("#additems").click(function(){ |
278 |
$("#additems").click(function(){ |
262 |
- |
|
|