Added new field to input text. (Transactional maps develop)

This commit is contained in:
Arturo Gonzalez 2016-11-22 14:16:56 +01:00
parent a6f546c8d8
commit defdd619ba
1 changed files with 4 additions and 1 deletions

View File

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