Lines 51-57
Link Here
|
51 |
[% END %] |
51 |
[% END %] |
52 |
|
52 |
|
53 |
[% IF view == 'form' %] |
53 |
[% IF view == 'form' %] |
54 |
<form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batch_extend_due_dates.pl" id="extend_due_dates_form"> |
54 |
<form method="post" action="/cgi-bin/koha/tools/batch_extend_due_dates.pl" id="extend_due_dates_form"> |
55 |
<fieldset class="rows"> |
55 |
<fieldset class="rows"> |
56 |
<legend>Checkout criteria:</legend> |
56 |
<legend>Checkout criteria:</legend> |
57 |
<ol> |
57 |
<ol> |
Lines 198-219
Link Here
|
198 |
[% Asset.js("js/tools-menu.js") | $raw %] |
198 |
[% Asset.js("js/tools-menu.js") | $raw %] |
199 |
[% INCLUDE 'calendar.inc' %] |
199 |
[% INCLUDE 'calendar.inc' %] |
200 |
[% INCLUDE 'datatables.inc' %] |
200 |
[% INCLUDE 'datatables.inc' %] |
201 |
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] |
|
|
202 |
[% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] |
201 |
[% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] |
203 |
<script> |
202 |
<script> |
204 |
$(document).ready(function() { |
203 |
$(document).ready(function() { |
205 |
|
204 |
|
206 |
$("#selectall").click(function(e) { |
205 |
$("#selectall").click(function(e){ |
207 |
e.preventDefault(); |
206 |
e.preventDefault(); |
208 |
$("#checkouts").checkCheckboxes(); |
207 |
$("#checkouts input[type='checkbox']").each(function(){ |
|
|
208 |
$(this).prop("checked", true); |
209 |
}); |
209 |
}); |
210 |
}); |
210 |
$("#clearall").click(function(e) { |
211 |
|
|
|
212 |
$("#clearall").click(function(e){ |
211 |
e.preventDefault(); |
213 |
e.preventDefault(); |
212 |
$("#checkouts").unCheckCheckboxes(); |
214 |
$("#checkouts input[type='checkbox']").each(function(){ |
|
|
215 |
$(this).prop("checked", false); |
216 |
}); |
213 |
}); |
217 |
}); |
|
|
218 |
|
214 |
$("#selectall").click(); |
219 |
$("#selectall").click(); |
215 |
|
220 |
|
216 |
$("table#checkouts").dataTable($.extend(true, {}, dataTablesDefaults, { |
221 |
$("#checkouts").dataTable($.extend(true, {}, dataTablesDefaults, { |
217 |
"aoColumnDefs": [ |
222 |
"aoColumnDefs": [ |
218 |
{ "aTargets": [0, 3], "bSortable": false, "bSearchable": false }, |
223 |
{ "aTargets": [0, 3], "bSortable": false, "bSearchable": false }, |
219 |
{ "aTargets": [1], "sType": "num-html" } |
224 |
{ "aTargets": [1], "sType": "num-html" } |
Lines 223-229
Link Here
|
223 |
"bPaginate": false |
228 |
"bPaginate": false |
224 |
})); |
229 |
})); |
225 |
|
230 |
|
226 |
$("table#checkouts_result").dataTable($.extend(true, {}, dataTablesDefaults, { |
231 |
$("#checkouts_result").dataTable($.extend(true, {}, dataTablesDefaults, { |
227 |
"aoColumnDefs": [ |
232 |
"aoColumnDefs": [ |
228 |
{ "aTargets": [0, 3], "bSortable": false, "bSearchable": false }, |
233 |
{ "aTargets": [0, 3], "bSortable": false, "bSearchable": false }, |
229 |
{ "aTargets": [1], "sType": "num-html" } |
234 |
{ "aTargets": [1], "sType": "num-html" } |
230 |
- |
|
|