From: Janusz Dobrowolski Date: Sun, 15 Jun 2008 21:07:38 +0000 (+0000) Subject: Added submit_on_change option for ref input functions X-Git-Tag: v2.4.2~19^2~2015 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=72c9e5b8a03797af04324f115658ef24d52fac67;p=fa-stable.git Added submit_on_change option for ref input functions --- diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 6811076c..8842fc53 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -290,7 +290,7 @@ function text_cells($label, $name, $value, $size="", $max="", $title=false, $par $Ajax->addUpdate($name, $name, $value); } -function text_cells_ex($label, $name, $size, $max=null, $init=null, $title=null, $params=null, $post_label=null) +function text_cells_ex($label, $name, $size, $max=null, $init=null, $title=null, $params=null, $post_label=null, $submit_on_change=false) { global $Ajax; @@ -309,8 +309,8 @@ function text_cells_ex($label, $name, $size, $max=null, $init=null, $title=null, $max = $size; echo ""; - - echo ""; if ($post_label) @@ -367,7 +367,7 @@ function date_cells($label, $name, $title = null, $init=null, $inc_days=0, $inc_ $_POST[$name] = $init; } if ($use_date_picker) - $post_label = "" + $post_label = "" . " "._(\n"; else $post_label = ""; @@ -383,17 +383,17 @@ function date_row($label, $name, $title=null, $init=null, $inc_days=0, $inc_mont //----------------------------------------------------------------------------------- -function ref_cells($label, $name, $title=null, $init=null, $params=null) +function ref_cells($label, $name, $title=null, $init=null, $params=null, $submit_on_change=false) { - text_cells_ex($label, $name, 16, 18, $init, $title, $params); + text_cells_ex($label, $name, 16, 18, $init, $title, $params, null, $submit_on_change); } //----------------------------------------------------------------------------------- -function ref_row($label, $name, $title=null, $init=null) +function ref_row($label, $name, $title=null, $init=null, $submit_on_change=false) { echo ""; - ref_cells($label, $name, $title, $init); + ref_cells($label, $name, $title, $init, null, $submit_on_change); echo "\n"; }