From d1389fdd89baa1c1d91ca12f4e3bc7d26a57be74 Mon Sep 17 00:00:00 2001
From: Owen Leonard
Check all Uncheck all |
- [% ELSE %]
- - [% END %] + | Order line | Order date | Estimated delivery date | @@ -292,10 +291,11 @@ var columns_settings = [% TablesSettings.GetColumns( 'acqui', 'lateorders', 'late_orders', 'json' ) | $raw %]; late_orderst = KohaTable("late_orders", { "aoColumnDefs": [ - { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }, + { "targets": [ "NoSort" ],"sortable": false,"searchable": false }, { "sType": "anti-the", "aTargets" : [ "anti-the" ] }, { "sType": "title-string", "aTargets" : [ "title-string" ] } ], + "sorting": [[ 1, "asc" ]], "sPaginationType": "full", "bAutoWidth": false, "fnDrawCallback": function() { @@ -306,8 +306,14 @@ } }, columns_settings ); $('input:checkbox[name=ordernumber]').bind('click', check_uncheck); - $('#CheckAll').click(function(){ $(late_orderst.fnGetNodes()).find("td").checkCheckboxes();}); - $('#CheckNone').click(function(){ $(late_orderst.fnGetNodes()).find("td").unCheckCheckboxes();}); + $('#CheckAll').click(function(e){ + e.preventDefault(); + $("#late_orders input:checkbox").prop("checked", true); + }); + $('#CheckNone').click(function(e){ + e.preventDefault(); + $("#late_orders input:checkbox").prop("checked", false); + }); // Generates a dynamic link for exporting the selection's data as CSV $("#exportbutton, #export-csv-menu a").click(function() { -- 2.11.0
---|