(BUG #4804) fix following bug: in neworderempty.pl, Click on minus sign in a item part don't decrements quantity.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Alex Arnaud 2010-05-21 16:44:33 +02:00 committed by Galen Charlton
parent 72d7840f52
commit 5039176443

View 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>