Bug 12906: DataTables: Use -1 to specify the last column
authorJonathan Druart <jonathan.druart@koha-community.org>
Tue, 16 Jun 2015 16:46:54 +0000 (18:46 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 24 Jul 2015 16:53:29 +0000 (13:53 -0300)
It will avoid further changes.

Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt

index cb3d9f5..519cfee 100644 (file)
@@ -12,7 +12,7 @@ $(document).ready(function() {
     var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
         bPaginate: false,
         aoColumnDefs: [
-            { "bSortable": false, "aTargets": [1, 9] },
+            { "bSortable": false, "aTargets": [1, -1] },
             { "bVisible": false, "aTargets": [0] },
             { "sType": "title-string", "aTargets" : [ "title-string" ] }
         ]