|
Lines 82-93
function Check(f) {
Link Here
|
| 82 |
function CheckMultipleAdd(f) { |
82 |
function CheckMultipleAdd(f) { |
| 83 |
|
83 |
|
| 84 |
if (!f || isNaN(f) || !parseInt(f) == f || f <= 0) { |
84 |
if (!f || isNaN(f) || !parseInt(f) == f || f <= 0) { |
| 85 |
alert(_("Please enter a number of items to create.")); |
85 |
alert(_("Please enter a number of items to create.")); |
| 86 |
return false; |
86 |
return false; |
| 87 |
} |
87 |
} |
| 88 |
<!-- Add a soft-limit of 99 with a reminder about potential data entry error --> |
88 |
<!-- Add a soft-limit of 99 with a reminder about potential data entry error --> |
| 89 |
if (f>99) { |
89 |
if (f>99) { |
| 90 |
return confirm(_("More than 99 copies will be added. Should they be added?")); |
90 |
return confirm(_("You are about to add %s items. Continue?").format(f)); |
| 91 |
} |
91 |
} |
| 92 |
} |
92 |
} |
| 93 |
function Dopop(link,i) { |
93 |
function Dopop(link,i) { |
| 94 |
- |
|
|