1
0
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:
Cameron 2014-06-26 14:44:59 -07:00
parent 88bd9796ef
commit 38b8d247fa

View File

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