mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Form handler: Display only numeric keypad on smartphones when entering numbers.
This commit is contained in:
@@ -325,7 +325,7 @@ class e_form
|
|||||||
//never allow id in format name-value for text fields
|
//never allow id in format name-value for text fields
|
||||||
if(deftrue('BOOTSTRAP'))
|
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);
|
return $this->text($name, $value, $maxlength, $options);
|
||||||
|
Reference in New Issue
Block a user