From c461434bbfa9fb18ac986dc8050bfe8a08eb5340 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 10 Jul 2011 18:24:18 +0000 Subject: [PATCH] Fix: possibility to change status of another input element --- htdocs/lib/ajax.lib.php | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/htdocs/lib/ajax.lib.php b/htdocs/lib/ajax.lib.php index 7c88ae4ea94..1d6c000c6a1 100644 --- a/htdocs/lib/ajax.lib.php +++ b/htdocs/lib/ajax.lib.php @@ -21,7 +21,7 @@ /** * \file htdocs/lib/ajax.lib.php * \brief Page called by Ajax request for produts - * \version $Id$ + * \version $Id: ajax.lib.php,v 1.58 2011/07/10 18:24:18 hregis Exp $ */ @@ -219,13 +219,18 @@ function ajax_combobox($htmlname) /** * On/off button for constant * @param code Name of constant + * @param input Input element + * TODO add different method for other input (show/hide, disable, ..) */ -function ajax_constantonoff($code) +function ajax_constantonoff($code,$input=array()) { global $conf, $langs; $out= '