(BUG #4804) fix following bug: in neworderempty.pl, Click on minus sign in a item...
authorAlex Arnaud <alex.arnaud@biblibre.com>
Fri, 21 May 2010 14:44:33 +0000 (16:44 +0200)
committerGalen Charlton <gmcharlt@gmail.com>
Fri, 2 Jul 2010 17:57:13 +0000 (13:57 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>

koha-tmpl/intranet-tmpl/prog/en/js/additem.js

index ac3e8bd..8658324 100644 (file)
@@ -1,8 +1,8 @@
 function deleteItemBlock(index) {
     var aDiv = document.getElementById(index);
     aDiv.parentNode.removeChild(aDiv);
-    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 cloneItemBlock(index) {    
     var original = document.getElementById(index); //original <div>