|
Lines 274-280
Link Here
|
| 274 |
[% Asset.js("js/tools-menu.js") | $raw %] |
274 |
[% Asset.js("js/tools-menu.js") | $raw %] |
| 275 |
[% INCLUDE 'datatables.inc' %] |
275 |
[% INCLUDE 'datatables.inc' %] |
| 276 |
[% INCLUDE 'calendar.inc' %] |
276 |
[% INCLUDE 'calendar.inc' %] |
| 277 |
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] |
|
|
| 278 |
<script type="text/javascript"> |
277 |
<script type="text/javascript"> |
| 279 |
function checkForm() { |
278 |
function checkForm() { |
| 280 |
if ( $('#uploadbarcodes').val() ) { |
279 |
if ( $('#uploadbarcodes').val() ) { |
|
Lines 351-365
Link Here
|
| 351 |
return false; |
350 |
return false; |
| 352 |
}); |
351 |
}); |
| 353 |
|
352 |
|
| 354 |
|
353 |
var checkboxes = $("#inventoryt input:checkbox"); |
| 355 |
$(".checkall").click(function(){ |
354 |
$(".checkall").click(function(e){ |
| 356 |
$(".checkboxed").checkCheckboxes(); |
355 |
e.preventDefault(); |
| 357 |
return false; |
356 |
checkboxes.each(function(){ |
|
|
357 |
$(this).prop("checked", true); |
| 358 |
}); |
358 |
}); |
| 359 |
$(".clearall").click(function(){ |
359 |
}); |
| 360 |
$(".checkboxed").unCheckCheckboxes(); |
360 |
$(".clearall").click(function(e){ |
| 361 |
return false; |
361 |
e.preventDefault(); |
|
|
362 |
checkboxes.each(function(){ |
| 363 |
$(this).prop("checked", false); |
| 362 |
}); |
364 |
}); |
|
|
365 |
}); |
| 363 |
$("#inventory_form").on("submit",function(){ |
366 |
$("#inventory_form").on("submit",function(){ |
| 364 |
return checkForm(); |
367 |
return checkForm(); |
| 365 |
}); |
368 |
}); |
| 366 |
- |
|
|