Bug 13459: Fix datatables paging for patron lists
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sat, 27 Dec 2014 20:13:58 +0000 (21:13 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 7 Jan 2015 23:08:23 +0000 (20:08 -0300)
The display of the datatables paging options for the
patron list feature is broken.

To test:
- Go to tools > patron lists
- The paging for the 'list of lists' is broken
- Select a patron list 'Add more patrons'
- Notice the paging on this page is also broken
- Apply patch
- Verify both pages now display the paging correctly

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt
koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt

index b55da33..f348cb6 100644 (file)
@@ -17,7 +17,8 @@ $(document).ready(function() {
             ],
             "aoColumnDefs": [
                 { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
-            ]
+            ],
+            "sPaginationType": "four_button"
         } ));
 
     $( "#find_patron" ).autocomplete({
index 2703144..884bb8f 100644 (file)
@@ -11,7 +11,8 @@
         $('#patron-lists-table').dataTable($.extend(true, {}, dataTablesDefaults, {
             "aoColumnDefs": [
                 { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
-            ]
+            ],
+            "sPaginationType": "four_button"
         } ));
     });