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); }