From 23012305fdff15b5f16dff33968b1d7ecfb443ef 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. --- koha-tmpl/intranet-tmpl/prog/en/js/additem.js | 4 ++-- 1 files 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 ac3e8bd..8658324 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
-- 1.6.3.3