View | Details | Raw Unified | Return to bug 10473
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-2 / +5 lines)
Lines 76-81 function CheckMultipleAdd(f) { Link Here
76
	alert(_("Please enter a number of items to create."));
76
	alert(_("Please enter a number of items to create."));
77
	return false;
77
	return false;
78
    }
78
    }
79
    <!-- Add a soft-limit of 99 with a reminder about potential data entry error -->
80
    if (f>99) {
81
        return confirm(_("More than 99 copies will be added. Should they be added?"));
82
    }
79
}
83
}
80
function Dopop(link,i) {
84
function Dopop(link,i) {
81
    defaultvalue=document.forms[0].field_value[i].value;
85
    defaultvalue=document.forms[0].field_value[i].value;
Lines 241-247 $(document).ready(function() { Link Here
241
    <input type="submit" name="add_duplicate_submit" value="Add &amp; duplicate" onclick="return Check(this.form)" />
245
    <input type="submit" name="add_duplicate_submit" value="Add &amp; duplicate" onclick="return Check(this.form)" />
242
    <input type="submit" name="add_multiple_copies" value="Add multiple items" onclick="javascript:this.nextSibling.style.visibility='visible';document.f.number_of_copies.focus(); return false;" /><span id="add_multiple_copies_span" style="visibility:hidden">
246
    <input type="submit" name="add_multiple_copies" value="Add multiple items" onclick="javascript:this.nextSibling.style.visibility='visible';document.f.number_of_copies.focus(); return false;" /><span id="add_multiple_copies_span" style="visibility:hidden">
243
    <label for="number_of_copies">Number of items to add : </label>
247
    <label for="number_of_copies">Number of items to add : </label>
244
	<input type="text" id="number_of_copies" name="number_of_copies" value="" size="2" />
248
        <input type="text" id="number_of_copies" name="number_of_copies" value="" placeholder="3"/>
245
	<input type="submit" id="add_multiple_copies_submit" name="add_multiple_copies_submit" value="Add" onclick="javascript:return Check(this.form) &amp;&amp; CheckMultipleAdd(this.form.number_of_copies.value);" />
249
	<input type="submit" id="add_multiple_copies_submit" name="add_multiple_copies_submit" value="Add" onclick="javascript:return Check(this.form) &amp;&amp; CheckMultipleAdd(this.form.number_of_copies.value);" />
246
    </span>
250
    </span>
247
251
248
- 

Return to bug 10473