Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
//}
// insert this line on the page
original.parentNode.insertBefore(clone,original.nextSibling);
- var quantityrec = document.getElementById('quantityrec');
- quantityrec.setAttribute('value',parseFloat(quantityrec.getAttribute('value'))+1);
+ var quantity = document.getElementById('quantity');
+ quantity.setAttribute('value',parseFloat(quantity.getAttribute('value'))+1);
}
function check_additem() {
var barcodes = document.getElementsByName('barcode');
<!-- TMPL_IF name="items" -->
<input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" onchange="calcNeworderTotal();" />
<!-- TMPL_ELSE -->
- <input type="text" size="20" id="quantityrec" name="quantity" value="<!-- TMPL_VAR name="quantityrec" -->" onchange="calcNeworderTotal();" />
+ <input type="text" size="20" id="quantity" name="quantity" value="<!-- TMPL_VAR name="quantityrec" -->" onchange="calcNeworderTotal();" />
<!-- /TMPL_IF -->
<!--/TMPL_IF-->
<!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->