From: Janusz Dobrowolski Date: Mon, 20 Apr 2009 08:21:33 +0000 (+0000) Subject: Helper for js confirm dialogs added. X-Git-Tag: 2.3-final~1279 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=f7bede43880bec03b2ea812a4ea87c0e1fbee969;p=fa-stable.git Helper for js confirm dialogs added. --- diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 6f33413e..dd2930c4 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 = "