|
Lines 22-28
Link Here
|
| 22 |
} |
22 |
} |
| 23 |
} |
23 |
} |
| 24 |
if (items.length < 1) { |
24 |
if (items.length < 1) { |
| 25 |
alert("Please select at least one item to delete."); |
25 |
alert(_("Please select at least one item to delete.")); |
| 26 |
return; // no item selected |
26 |
return; // no item selected |
| 27 |
} |
27 |
} |
| 28 |
getstr = items.join("&"); |
28 |
getstr = items.join("&"); |
|
Lines 34-40
Link Here
|
| 34 |
// var msg = "Are you sure you want to remove selected item from this batch?" |
34 |
// var msg = "Are you sure you want to remove selected item from this batch?" |
| 35 |
// } |
35 |
// } |
| 36 |
else { |
36 |
else { |
| 37 |
alert("Please select at least label to delete."); |
37 |
alert(_("Please select at least label to delete.")); |
| 38 |
return; // no item selected |
38 |
return; // no item selected |
| 39 |
} |
39 |
} |
| 40 |
var answer = confirm(msg); |
40 |
var answer = confirm(msg); |
|
Lines 61-67
Link Here
|
| 61 |
} |
61 |
} |
| 62 |
} |
62 |
} |
| 63 |
if (patroncards.length < 1) { |
63 |
if (patroncards.length < 1) { |
| 64 |
alert("Please select at least one card to export."); |
64 |
alert(_("Please select at least one card to export.")); |
| 65 |
return; // no batch selected |
65 |
return; // no batch selected |
| 66 |
} |
66 |
} |
| 67 |
getstr = patroncards.join("&"); |
67 |
getstr = patroncards.join("&"); |
|
Lines 70-76
Link Here
|
| 70 |
getstr = document.items.action.value; |
70 |
getstr = document.items.action.value; |
| 71 |
} |
71 |
} |
| 72 |
else { |
72 |
else { |
| 73 |
alert("Please select at least one card to export."); |
73 |
alert(_("Please select at least one card to export.")); |
| 74 |
return; // no batch selected |
74 |
return; // no batch selected |
| 75 |
} |
75 |
} |
| 76 |
return GB_showCenter('Export Labels', "/cgi-bin/koha/patroncards/print.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&" + getstr, 700, 800); |
76 |
return GB_showCenter('Export Labels', "/cgi-bin/koha/patroncards/print.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&" + getstr, 700, 800); |
|
Lines 95-101
Link Here
|
| 95 |
return(document.items.action.value); |
95 |
return(document.items.action.value); |
| 96 |
} |
96 |
} |
| 97 |
}; |
97 |
}; |
| 98 |
alert("Please select at least one item."); |
98 |
alert(_("Please select at least one item.")); |
| 99 |
return (-1); |
99 |
return (-1); |
| 100 |
}; |
100 |
}; |
| 101 |
|
101 |
|