Fix for Bug 2700, Keeping Data When Adding Multiple Items
When cloning the set of inputs, the new js increments the IDs of each form field (to keep them unique) and automatically selects the option that was selected in the cloned group. Signed-off-by: Galen Charlton <galen.charlton@liblime.com> Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
parent
aea6b21b27
commit
552ffda0e6
|
|
@ -46,12 +46,12 @@ fieldset.rows .itemblock fieldset.action { padding:.5em; }
|
|||
<div id="outeritemblock">
|
||||
<div class="itemblock">
|
||||
<ol>
|
||||
<li> <label for="volinf">Volume/Copy (for serials): </label>
|
||||
<input type="text" size="20" name="volinf" id="volinf" /></li>
|
||||
<li> <label for="barcode">Item barcode: </label>
|
||||
<input type="text" size="20" name="barcode" id="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" /></li>
|
||||
<li> <label for="homebranch">Home library: </label>
|
||||
<select name="homebranch" id="homebranch"> <!-- TMPL_LOOP name="branchloop" -->
|
||||
<li> <label for="volinf1">Volume/Copy (for serials): </label>
|
||||
<input type="text" size="20" name="volinf" id="volinf1" /></li>
|
||||
<li> <label for="barcode1">Item barcode: </label>
|
||||
<input type="text" size="20" name="barcode" id="barcode1" value="<!-- TMPL_VAR NAME="barcode" -->" /></li>
|
||||
<li> <label for="homebranch1">Home library: </label>
|
||||
<select name="homebranch" id="homebranch1"> <!-- TMPL_LOOP name="branchloop" -->
|
||||
<!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="description" --></option>
|
||||
<!-- TMPL_ELSE -->
|
||||
<option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
|
||||
|
|
|
|||
Loading…
Reference in New Issue