(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:
parent
72d7840f52
commit
5039176443
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue