|
Lines 122-127
$(document).ready(function(){
Link Here
|
| 122 |
rtable.fnSetColumnVis(4, true); |
122 |
rtable.fnSetColumnVis(4, true); |
| 123 |
} |
123 |
} |
| 124 |
}); |
124 |
}); |
|
|
125 |
|
| 126 |
$("#reports_form").submit(function(){ |
| 127 |
var checkedItems = $("input[name=ids]:checked"); |
| 128 |
if ($(checkedItems).size() == 0) { |
| 129 |
alert(_("You must select one or more reports to delete")); |
| 130 |
return false; |
| 131 |
} |
| 132 |
return confirm(_("Are you sure you want to delete the selected reports?")); |
| 133 |
}); |
| 125 |
[% END %] |
134 |
[% END %] |
| 126 |
|
135 |
|
| 127 |
[% IF ( showsql ) %] |
136 |
[% IF ( showsql ) %] |
|
Lines 132-138
$(document).ready(function(){
Link Here
|
| 132 |
[% IF ( saved1 ) %] |
141 |
[% IF ( saved1 ) %] |
| 133 |
$(".confirmdelete").click(function(){ |
142 |
$(".confirmdelete").click(function(){ |
| 134 |
$(this).parents('tr').attr("class","warn"); |
143 |
$(this).parents('tr').attr("class","warn"); |
| 135 |
if(confirm("Are you sure you want to "+$(this).attr("title")+"?")){ |
144 |
if(confirm(_("Are you sure you want to delete this saved report?"))){ |
| 136 |
return true; |
145 |
return true; |
| 137 |
} else { |
146 |
} else { |
| 138 |
$(this).parents('tr').attr("class",""); |
147 |
$(this).parents('tr').attr("class",""); |
|
Lines 273-278
canned reports and writing custom SQL reports.</p>
Link Here
|
| 273 |
<option value="">All</option> |
282 |
<option value="">All</option> |
| 274 |
</select> |
283 |
</select> |
| 275 |
</div> |
284 |
</div> |
|
|
285 |
<form action="/cgi-bin/koha/reports/guided_reports.pl" id="reports_form" method="post"> |
| 286 |
<input type="hidden" name="phase" value="Delete Multiple" /> |
| 276 |
<table id="table_reports"> |
287 |
<table id="table_reports"> |
| 277 |
<thead> |
288 |
<thead> |
| 278 |
<tr> |
289 |
<tr> |
|
Lines 293-299
canned reports and writing custom SQL reports.</p>
Link Here
|
| 293 |
<tbody> |
304 |
<tbody> |
| 294 |
[% FOREACH savedreport IN savedreports %] |
305 |
[% FOREACH savedreport IN savedreports %] |
| 295 |
[% UNLESS ( loop.odd ) %]<tr class="odd">[% ELSE %]<tr>[% END %] |
306 |
[% UNLESS ( loop.odd ) %]<tr class="odd">[% ELSE %]<tr>[% END %] |
| 296 |
<td>[% savedreport.id %]</td> |
307 |
<td><label>[% savedreport.id %] <input type="checkbox" name="ids" value="[% savedreport.id %]" /></label></td> |
| 297 |
<td> |
308 |
<td> |
| 298 |
[% IF ( savedreport.report_name ) %] |
309 |
[% IF ( savedreport.report_name ) %] |
| 299 |
[% savedreport.report_name %] |
310 |
[% savedreport.report_name %] |
|
Lines 338-343
canned reports and writing custom SQL reports.</p>
Link Here
|
| 338 |
[% END %] |
349 |
[% END %] |
| 339 |
</tbody> |
350 |
</tbody> |
| 340 |
</table> |
351 |
</table> |
|
|
352 |
<fieldset class="action"> |
| 353 |
<input type="submit" value="Delete selected" /> |
| 354 |
</fieldset> |
| 355 |
</form> |
| 341 |
</div> |
356 |
</div> |
| 342 |
</div> |
357 |
</div> |
| 343 |
[% ELSE %]<div class="dialog message"> |
358 |
[% ELSE %]<div class="dialog message"> |