Bug 22175: Make stock rotation table sortable
[koha-equinox.git] / koha-tmpl / intranet-tmpl / prog / js / pages / stockrotation.js
index 2763945..b9493df 100644 (file)
@@ -1,3 +1,5 @@
+/* global KohaTable columns_settings */
+
 function init() {
     $('#ajax_status').hide();
     $('#ajax_saving_msg').hide();
@@ -62,4 +64,25 @@ $(document).ready(function() {
             })
         }
     });
+
+    KohaTable("stock_rotation_manage_items", {
+        "aoColumnDefs": [
+            { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
+            { "sType": "anti-the", "aTargets": [ "anti-the" ] }
+        ],
+        "sPaginationType": "four_button",
+        "autoWidth": false,
+        "exportColumns": [0,1,2,3,4,5]
+    }, stock_rotation_items_columns_settings);
+
+    KohaTable("stock_rotation", {
+        "aoColumnDefs": [
+            { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
+            { "sType": "anti-the", "aTargets": [ "anti-the" ] }
+        ],
+        "sPaginationType": "four_button",
+        "autoWidth": false,
+        "exportColumns": [0,1,2,3,4]
+    }, stock_rotation_columns_settings);
+
 });