From 72c9e5b8a03797af04324f115658ef24d52fac67 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 15 Jun 2008 21:07:38 +0000 Subject: [PATCH] Added submit_on_change option for ref input functions --- includes/ui/ui_input.inc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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"; } -- 2.30.2