From f81192cedfcdde4fd8d6829994d5fd36e64b64fa Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Mon, 24 Nov 2008 20:03:22 +0000 Subject: [PATCH] Added postlabel update in amount_cells_ex and derivative helpers, fixed qty_cell $dec handling. --- includes/ui/ui_input.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 2a76848d..59064f82 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -304,7 +304,7 @@ function percent_cell($label, $bold=false, $id=null) // 2008-06-15. Changed function qty_cell($label, $bold=false, $dec=null, $id=null) { - if ($dec == null) + if (!isset($dec)) $dec = get_qty_dec(); if ($bold) label_cell("".number_format2($label, $dec)."", "nowrap align=right", $id); @@ -498,9 +498,10 @@ function amount_cells_ex($label, $name, $size, $max=null, $init=null, $params=nu echo ""; - if ($post_label) - echo " " . $post_label; - + if ($post_label) { + echo " $post_label"; + $Ajax->addUpdate($name, '_'.$name.'_label', $post_label); + } echo "\n"; $Ajax->addUpdate($name, $name, $_POST[$name]); $Ajax->addAssign($name, $name, 'dec', $dec); -- 2.30.2