diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index dfd61738c86..896b4e59922 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3236,7 +3236,7 @@ class Form { $retstring.=''; + $retstring.=' onClick="showDP(\''.$base.'\',\''.$prefix.'\',\''.$langs->trans("FormatDateShortJava").'\',\''.$langs->defaultlang.'\');">'.img_object($langs->trans("SelectDate"),'calendarday','class="datecallink"').''; } $retstring.=''."\n"; @@ -3401,7 +3401,7 @@ class Form // If reset_scripts is not empty, print the button with the reset_scripts in OnClick if ($reset_scripts) { - $retstring.=' '; } @@ -3547,7 +3547,7 @@ class Form $yes="1"; $no="0"; } - + $disabled = ($disabled ? ' disabled="disabled"' : ''); $resultyesno = '