Lines 30-36
function confirm_deletion() {
Link Here
|
30 |
var count = [% count %]; |
30 |
var count = [% count %]; |
31 |
var is_confirmed; |
31 |
var is_confirmed; |
32 |
if (count>0){ |
32 |
if (count>0){ |
33 |
is_confirmed= alert(_('There are [ '+ count +' ] item(s) attached to this record \n You must delete all items before deleting this record.')); |
33 |
is_confirmed= alert(count + " " +_("item(s) are attached to this record.\nYou must delete all items before deleting this record.")); |
34 |
} else{ |
34 |
} else{ |
35 |
is_confirmed= confirm(_("Are you sure you want to delete this record? ")); |
35 |
is_confirmed= confirm(_("Are you sure you want to delete this record? ")); |
36 |
} |
36 |
} |
Lines 50-56
function confirm_deletion() {
Link Here
|
50 |
function confirm_items_deletion() { |
50 |
function confirm_items_deletion() { |
51 |
var count = [% count %]; |
51 |
var count = [% count %]; |
52 |
if(count > 0){ |
52 |
if(count > 0){ |
53 |
if(confirm(_('Are you sure you want to delete the ' + count + ' attached items? '))){ |
53 |
if(confirm(_("Are you sure you want to delete the") + " " + count + " " + _("attached items?"))){ |
54 |
window.location="/cgi-bin/koha/cataloguing/additem.pl?op=delallitems&biblionumber=[% biblionumber %]"; |
54 |
window.location="/cgi-bin/koha/cataloguing/additem.pl?op=delallitems&biblionumber=[% biblionumber %]"; |
55 |
}else{ |
55 |
}else{ |
56 |
return false; |
56 |
return false; |