From b214eace345c1b2b96a4c26daf862610efc97d93 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Fri, 26 Mar 2010 11:25:35 +0100 Subject: [PATCH] (MT3174) acqui/neworderempty.pl: incrementing the quantity when adding an item Signed-off-by: Henri-Damien LAURENT Signed-off-by: Galen Charlton --- koha-tmpl/intranet-tmpl/prog/en/js/additem.js | 4 ++-- .../intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/additem.js b/koha-tmpl/intranet-tmpl/prog/en/js/additem.js index 352c30f06a..ac3e8bd963 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/additem.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/additem.js @@ -35,8 +35,8 @@ function cloneItemBlock(index) { //} // insert this line on the page original.parentNode.insertBefore(clone,original.nextSibling); - 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 check_additem() { var barcodes = document.getElementsByName('barcode'); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl index f42e58eb0b..f6f790261a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl @@ -240,7 +240,7 @@ ff.submit(); - " onchange="calcNeworderTotal();" /> + " onchange="calcNeworderTotal();" /> -- 2.39.5