Lines 50-63
Link Here
|
50 |
</p> |
50 |
</p> |
51 |
[% END %] |
51 |
[% END %] |
52 |
[% SET total = 0 %] |
52 |
[% SET total = 0 %] |
|
|
53 |
[% IF bookseller_filter %] |
54 |
<p><a id="CheckAll" href="#"><i class="fa fa-check"></i> Check all</a> <a id="CheckNone" href="#"><i class="fa fa-remove"></i> Uncheck all</a></p> |
55 |
[% END %] |
53 |
<table id="late_orders"> |
56 |
<table id="late_orders"> |
54 |
<thead> |
57 |
<thead> |
55 |
<tr> |
58 |
<tr> |
56 |
[% IF bookseller_filter %] |
59 |
<th class="NoSort"></th> |
57 |
<th><a id="CheckAll" href="#">Check all</a><br /><a id="CheckNone" href="#">Uncheck all</a></th> |
|
|
58 |
[% ELSE %] |
59 |
<th></th> |
60 |
[% END %] |
61 |
<th>Order line</th> |
60 |
<th>Order line</th> |
62 |
<th class="title-string">Order date</th> |
61 |
<th class="title-string">Order date</th> |
63 |
<th class="title-string">Estimated delivery date</th> |
62 |
<th class="title-string">Estimated delivery date</th> |
Lines 292-301
Link Here
|
292 |
var columns_settings = [% TablesSettings.GetColumns( 'acqui', 'lateorders', 'late_orders', 'json' ) | $raw %]; |
291 |
var columns_settings = [% TablesSettings.GetColumns( 'acqui', 'lateorders', 'late_orders', 'json' ) | $raw %]; |
293 |
late_orderst = KohaTable("late_orders", { |
292 |
late_orderst = KohaTable("late_orders", { |
294 |
"aoColumnDefs": [ |
293 |
"aoColumnDefs": [ |
295 |
{ "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }, |
294 |
{ "targets": [ "NoSort" ],"sortable": false,"searchable": false }, |
296 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
295 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
297 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
296 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
298 |
], |
297 |
], |
|
|
298 |
"sorting": [[ 1, "asc" ]], |
299 |
"sPaginationType": "full", |
299 |
"sPaginationType": "full", |
300 |
"bAutoWidth": false, |
300 |
"bAutoWidth": false, |
301 |
"fnDrawCallback": function() { |
301 |
"fnDrawCallback": function() { |
Lines 306-313
Link Here
|
306 |
} |
306 |
} |
307 |
}, columns_settings ); |
307 |
}, columns_settings ); |
308 |
$('input:checkbox[name=ordernumber]').bind('click', check_uncheck); |
308 |
$('input:checkbox[name=ordernumber]').bind('click', check_uncheck); |
309 |
$('#CheckAll').click(function(){ $(late_orderst.fnGetNodes()).find("td").checkCheckboxes();}); |
309 |
$('#CheckAll').click(function(e){ |
310 |
$('#CheckNone').click(function(){ $(late_orderst.fnGetNodes()).find("td").unCheckCheckboxes();}); |
310 |
e.preventDefault(); |
|
|
311 |
$("#late_orders input:checkbox").prop("checked", true); |
312 |
}); |
313 |
$('#CheckNone').click(function(e){ |
314 |
e.preventDefault(); |
315 |
$("#late_orders input:checkbox").prop("checked", false); |
316 |
}); |
311 |
|
317 |
|
312 |
// Generates a dynamic link for exporting the selection's data as CSV |
318 |
// Generates a dynamic link for exporting the selection's data as CSV |
313 |
$("#exportbutton, #export-csv-menu a").click(function() { |
319 |
$("#exportbutton, #export-csv-menu a").click(function() { |
314 |
- |
|
|