From 50391764431c95ffcbb735dd23d344265328c488 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Fri, 21 May 2010 16:44:33 +0200 Subject: [PATCH] (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 --- koha-tmpl/intranet-tmpl/prog/en/js/additem.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/additem.js b/koha-tmpl/intranet-tmpl/prog/en/js/additem.js index ac3e8bd963..86583244a4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/additem.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/additem.js @@ -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
-- 2.39.5