Lines 60-65
$(document).ready(function() {
Link Here
|
60 |
"aaSorting": [], |
60 |
"aaSorting": [], |
61 |
"bPaginate": false |
61 |
"bPaginate": false |
62 |
})); |
62 |
})); |
|
|
63 |
|
64 |
function Checkbox(){ |
65 |
var form = document.getElementById('selectrecords'); |
66 |
var inputs = form.getElementsByTagName('input'); |
67 |
var checked = false; |
68 |
for (var i=0; i<inputs.length; i++) { |
69 |
if (inputs[i].type == 'checkbox' && inputs[i].name == 'record_id') { |
70 |
checked = inputs[i].checked; |
71 |
if (checked) return true; |
72 |
} |
73 |
} |
74 |
return false; |
75 |
} |
76 |
|
77 |
$("#selectrecords").on("submit",function(){ |
78 |
if (Checkbox() == false){ |
79 |
alert(_("No records have been selected.")); |
80 |
return false; |
81 |
} |
82 |
}); |
63 |
}); |
83 |
}); |
64 |
//]]> |
84 |
//]]> |
65 |
</script> |
85 |
</script> |
Lines 150-156
$(document).ready(function() {
Link Here
|
150 |
| <a id="selectwithoutitems" href="#">Select without items</a> |
170 |
| <a id="selectwithoutitems" href="#">Select without items</a> |
151 |
| <a id="selectnotreserved" href="#">Select without holds</a> |
171 |
| <a id="selectnotreserved" href="#">Select without holds</a> |
152 |
</div> |
172 |
</div> |
153 |
<form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post"> |
173 |
<form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post" id="selectrecords"> |
154 |
<table id="biblios" class="records"> |
174 |
<table id="biblios" class="records"> |
155 |
<thead> |
175 |
<thead> |
156 |
<tr> |
176 |
<tr> |
157 |
- |
|
|