Bug 8106: DataTables integration in ACQ: addorderiso2709.tt
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 17 Feb 2012 14:55:38 +0000 (15:55 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 21 May 2012 16:34:01 +0000 (18:34 +0200)
addorderiso2709.tt

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Only affects the list of imports, not the list of records

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>

koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt

index 3fdd631..7a7e72a 100644 (file)
@@ -7,17 +7,21 @@
  &rsaquo; Batch list
 [% END %]
 </title>
+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
 [% INCLUDE 'doc-head-close.inc' %]
-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
+<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
+[% INCLUDE 'datatables-strings.inc' %]
+<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
 <script type="text/JavaScript">
 //<![CDATA[
     $(document).ready(function() {
-        $("#files").tablesorter({
-            headers: {
-                5: { sorter: false },
-            }
-        });
+        var srlt = $("#files").dataTable($.extend(true, {}, dataTablesDefaults, {
+            "aoColumnDefs": [
+                { "aTargets": [ 5 ], "bSortable": false, "bSearchable": false },
+            ],
+            "sPaginationType": "four_button"
+        } ) );
     });
 //]]>
 </script>