Bug 5345: DataTables integration in acquisition module [4]
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 24 May 2012 12:20:47 +0000 (14:20 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 25 May 2012 15:28:55 +0000 (17:28 +0200)
basket.tt
'Modify' and 'Delete' columns become unsortable

http://bugs.koha-community.org/show_bug.cgi?id=8109
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/basket.tt

index b3244e2..dcd6ccb 100644 (file)
 //<![CDATA[
     $(document).ready(function() {
         var orderst = $("#orders").dataTable($.extend(true, {}, dataTablesDefaults, {
-            "sPaginationType": "four_button"
+            "sPaginationType": "four_button",
+            [% IF ( active ) %]
+              [% UNLESS ( closedate ) %]
+                "aoColumnDefs": [
+                    { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
+                ],
+              [% END %]
+            [% END %]
         } ) );
         var cancelledorderst = $("#cancelledorderst").dataTable($.extend(true, {}, dataTablesDefaults, {
             "sPaginationType": "four_button"