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 273-279
Link Here
|
273 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
272 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
274 |
[% INCLUDE 'datatables.inc' %] |
273 |
[% INCLUDE 'datatables.inc' %] |
275 |
[% INCLUDE 'columns_settings.inc' %] |
274 |
[% INCLUDE 'columns_settings.inc' %] |
276 |
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] |
|
|
277 |
[% INCLUDE 'calendar.inc' %] |
275 |
[% INCLUDE 'calendar.inc' %] |
278 |
<script> |
276 |
<script> |
279 |
var late_orderst; |
277 |
var late_orderst; |
Lines 292-301
Link Here
|
292 |
var columns_settings = [% TablesSettings.GetColumns( 'acqui', 'lateorders', 'late_orders', 'json' ) | $raw %]; |
290 |
var columns_settings = [% TablesSettings.GetColumns( 'acqui', 'lateorders', 'late_orders', 'json' ) | $raw %]; |
293 |
late_orderst = KohaTable("late_orders", { |
291 |
late_orderst = KohaTable("late_orders", { |
294 |
"aoColumnDefs": [ |
292 |
"aoColumnDefs": [ |
295 |
{ "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }, |
293 |
{ "targets": [ "NoSort" ],"sortable": false,"searchable": false }, |
296 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
294 |
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] }, |
297 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
295 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
298 |
], |
296 |
], |
|
|
297 |
"sorting": [[ 1, "asc" ]], |
299 |
"sPaginationType": "full", |
298 |
"sPaginationType": "full", |
300 |
"bAutoWidth": false, |
299 |
"bAutoWidth": false, |
301 |
"fnDrawCallback": function() { |
300 |
"fnDrawCallback": function() { |
Lines 306-313
Link Here
|
306 |
} |
305 |
} |
307 |
}, columns_settings ); |
306 |
}, columns_settings ); |
308 |
$('input:checkbox[name=ordernumber]').bind('click', check_uncheck); |
307 |
$('input:checkbox[name=ordernumber]').bind('click', check_uncheck); |
309 |
$('#CheckAll').click(function(){ $(late_orderst.fnGetNodes()).find("td").checkCheckboxes();}); |
308 |
$('#CheckAll').click(function(e){ |
310 |
$('#CheckNone').click(function(){ $(late_orderst.fnGetNodes()).find("td").unCheckCheckboxes();}); |
309 |
e.preventDefault(); |
|
|
310 |
$("#late_orders input:checkbox").prop("checked", true); |
311 |
}); |
312 |
$('#CheckNone').click(function(e){ |
313 |
e.preventDefault(); |
314 |
$("#late_orders input:checkbox").prop("checked", false); |
315 |
}); |
311 |
|
316 |
|
312 |
// Generates a dynamic link for exporting the selection's data as CSV |
317 |
// Generates a dynamic link for exporting the selection's data as CSV |
313 |
$("#exportbutton, #export-csv-menu a").click(function() { |
318 |
$("#exportbutton, #export-csv-menu a").click(function() { |
314 |
- |
|
|