@@ -, +, @@ orders page - On the initial view, there should be no "Check all" or "Uncheck all" links. - Select a vendor in the left-hand sidebar form. - When the filtered table is redisplayed the "Check all" and "Uncheck all" links should now be visible. - Test that the links work correctly. - Confirm that the checkboxes column cannot be sorted and that the table is sorted by default by order line number. --- .../prog/en/modules/acqui/lateorders.tt | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt @@ -50,14 +50,13 @@

[% END %] [% SET total = 0 %] + [% IF bookseller_filter %] +

Check all Uncheck all

+ [% END %] - [% IF bookseller_filter %] - - [% ELSE %] - - [% END %] + @@ -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() { --
Check all
Uncheck all
Order line Order date Estimated delivery date