From 9dfa8fb78c67292e97e64f97822c1f4e5825eca3 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Mon, 20 Apr 2009 08:21:33 +0000 Subject: [PATCH] Helper for js confirm dialogs added. --- includes/ui/ui_input.inc | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 6f33413..dd2930c 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -103,17 +103,23 @@ function hidden($name, $value=null, $echo=true) else return $ret; } - -function submit($name, $value, $echo=true, $title=false, $async=false, $icon=false) +/* + Various types of submit button selected by $type: + null - button visible only in fallback mode + false - normal submit button + true - ajax driven submit + 'process' - ajax button with long timeout +*/ +function submit($name, $value, $echo=true, $title=false, $type=false, $icon=false) { global $path_to_root; - + default_focus($name); $submit_str = "