|
Lines 370-376
Link Here
|
| 370 |
}); |
370 |
}); |
| 371 |
$("#rm_items_button").on( 'click', function(e){ |
371 |
$("#rm_items_button").on( 'click', function(e){ |
| 372 |
e.preventDefault(); |
372 |
e.preventDefault(); |
| 373 |
$('#rm_items').submit(); |
373 |
if (confirmDelete(_("Are you sure you want to remove all items from the course?"))) { |
|
|
374 |
$('#rm_items').submit(); |
| 375 |
} |
| 374 |
}); |
376 |
}); |
| 375 |
|
377 |
|
| 376 |
var rtable = $("#course_reserves_table").kohaTable( |
378 |
var rtable = $("#course_reserves_table").kohaTable( |
|
Lines 389-398
Link Here
|
| 389 |
} |
391 |
} |
| 390 |
}); |
392 |
}); |
| 391 |
|
393 |
|
| 392 |
$("#rm_items").click(function(){ |
|
|
| 393 |
return confirmDelete(_("Are you sure you want to remove all items from the course?")); |
| 394 |
}); |
| 395 |
|
| 396 |
$("#delete_course").click(function(){ |
394 |
$("#delete_course").click(function(){ |
| 397 |
[% SET count = course_reserves.size || 0 %] |
395 |
[% SET count = course_reserves.size || 0 %] |
| 398 |
[% IF count == 1 %] |
396 |
[% IF count == 1 %] |
| 399 |
- |
|
|