From defdd619ba502970bd4adaa0dfbe0735860e7beb Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Tue, 22 Nov 2016 14:16:56 +0100 Subject: [PATCH] Added new field to input text. (Transactional maps develop) --- pandora_console/include/functions_html.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 627bba0ea0..83da8d6ec0 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -1071,7 +1071,7 @@ function html_print_input_password ($name, $value, $alt = '', * * @return string HTML code if return parameter is true. */ -function html_print_input_text ($name, $value, $alt = '', $size = 50, $maxlength = 255, $return = false, $disabled = false, $required = false, $function = "", $class = "") { +function html_print_input_text ($name, $value, $alt = '', $size = 50, $maxlength = 255, $return = false, $disabled = false, $required = false, $function = "", $class = "", $onChange ="") { if ($maxlength == 0) $maxlength = 255; @@ -1083,6 +1083,9 @@ function html_print_input_text ($name, $value, $alt = '', $size = 50, $maxlength $attr['required'] = 'required'; if ($class != '') $attr['class'] = $class; + if ($onChange != '') { + $attr['onchange'] = $onChange; + } return html_print_input_text_extended ($name, $value, 'text-'.$name, $alt, $size, $maxlength, $disabled, '', $attr, $return, false, $function); }