mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
Form handler: Display only numeric keypad on smartphones when entering numbers.
This commit is contained in:
parent
88bd9796ef
commit
38b8d247fa
@ -325,7 +325,7 @@ class e_form
|
||||
//never allow id in format name-value for text fields
|
||||
if(deftrue('BOOTSTRAP'))
|
||||
{
|
||||
return "<input type='number' name='{$name}' value='{$value}' {$mlength} {$min} {$max} ".$this->get_attributes($options, $name)." />";
|
||||
return "<input pattern='[0-9]*' type='number' name='{$name}' value='{$value}' {$mlength} {$min} {$max} ".$this->get_attributes($options, $name)." />";
|
||||
}
|
||||
|
||||
return $this->text($name, $value, $maxlength, $options);
|
||||
|
Loading…
x
Reference in New Issue
Block a user