From 1cd7612ea4878b607dfc42e2e95b1dd2269e7411 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Tue, 4 Jul 2017 00:08:40 +0200 Subject: [PATCH] HtmlInput::button_action: add icon , htmlInput : add documentation --- include/lib/class_html_input.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/lib/class_html_input.php b/include/lib/class_html_input.php index 6d5a06358..e7df44c55 100755 --- a/include/lib/class_html_input.php +++ b/include/lib/class_html_input.php @@ -463,17 +463,20 @@ class HtmlInput return $r; } /** - * button Html + * button Html with javascript *@param $action action action to perform (message) without onclick *@param $javascript javascript to execute + *@param $id is the DOM element id + *@param $p_class CSS class of the button + *@param $p_symbole raw symbole to add to the action message */ - static function button_action($action,$javascript,$id="xx",$p_class="button") + static function button_action($action,$javascript,$id="xx",$p_class="button",$p_symbole="") { if ($id=="xx"){ $id=HtmlInput::generate_id("xx"); } $r=""; - $r.=''; + $r.=''; return $r; }