View | Details | Raw Unified | Return to bug 28864
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt (-1 / +17 lines)
Lines 250-255 Link Here
250
        };
250
        };
251
251
252
        $(document).ready(function() {
252
        $(document).ready(function() {
253
            // Prepare DataTables settings
254
            var aLengthMenu = [10, 20, 50, 100, -1];
255
            var aLengthMenuLabel = [10, 20, 50, 100, _("All")];
256
            var patronsPerPage = [% Koha.Preference('PatronsPerPage') | html %];
257
            for ( var i = 0; i < aLengthMenu.length; i++ ) {
258
                if ( aLengthMenu[i] == patronsPerPage ) {
259
                    break;
260
                }
261
                if ( aLengthMenu[i] > patronsPerPage || aLengthMenu[i] == -1 ) {
262
                    aLengthMenu.splice(i, 0, patronsPerPage);
263
                    aLengthMenuLabel.splice(i, 0, patronsPerPage);
264
                    break;
265
                }
266
            }
267
253
            [% IF table_loop %]
268
            [% IF table_loop %]
254
                $("#description").show();
269
                $("#description").show();
255
            [% ELSE %]
270
            [% ELSE %]
Lines 261-266 Link Here
261
                ],
276
                ],
262
                "aaSorting": [[ 0, "asc" ]],
277
                "aaSorting": [[ 0, "asc" ]],
263
                "sPaginationType": "full",
278
                "sPaginationType": "full",
279
                "aLengthMenu": [aLengthMenu, aLengthMenuLabel],
280
                "pageLength": patronsPerPage,
264
                "autoWidth": false
281
                "autoWidth": false
265
            }));
282
            }));
266
            $("#additems").click(function(){
283
            $("#additems").click(function(){
267
- 

Return to bug 28864