fix duration fields size with firefox

This commit is contained in:
altairis 2020-07-31 12:22:21 +02:00
parent 071b909d38
commit 9a9eef428b

View File

@ -5649,7 +5649,7 @@ class Form
} }
elseif ($typehour=='text' || $typehour=='textselect') elseif ($typehour=='text' || $typehour=='textselect')
{ {
$retstring.='<input placeholder="'.$langs->trans('HourShort').'" type="number" min="0" size="1" name="'.$prefix.'hour"'.($disabled?' disabled':'').' class="flat maxwidth50 inputhour" value="'.(($hourSelected != '')?((int) $hourSelected):'').'">'; $retstring.='<input placeholder="'.$langs->trans('HourShort').'" type="number" min="0" name="'.$prefix.'hour"'.($disabled?' disabled':'').' class="flat maxwidth50 inputhour" value="'.(($hourSelected != '')?((int) $hourSelected):'').'">';
} }
else return 'BadValueForParameterTypeHour'; else return 'BadValueForParameterTypeHour';
@ -5673,7 +5673,7 @@ class Form
} }
elseif ($typehour=='text' ) elseif ($typehour=='text' )
{ {
$retstring.='<input placeholder="'.$langs->trans('MinuteShort').'" type="number" min="0" size="1" name="'.$prefix.'min"'.($disabled?' disabled':'').' class="flat maxwidth50 inputminute" value="'.(($minSelected != '')?((int) $minSelected):'').'">'; $retstring.='<input placeholder="'.$langs->trans('MinuteShort').'" type="number" min="0" name="'.$prefix.'min"'.($disabled?' disabled':'').' class="flat maxwidth50 inputminute" value="'.(($minSelected != '')?((int) $minSelected):'').'">';
} }
if ($typehour!='text') $retstring.=' '.$langs->trans('MinuteShort'); if ($typehour!='text') $retstring.=' '.$langs->trans('MinuteShort');