Skip to content
Snippets Groups Projects
Commit 1b089118 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #401 from greezybacon/issue/allow-autocomplete-on-client


Allow autocomplete on email address

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents c01a90ac dee7c223
No related branches found
No related tags found
No related merge requests found
......@@ -148,22 +148,6 @@ class UserForm extends DynamicForm {
return $os->filter(array('type'=>'U'));
}
function getFields($cache=true) {
$fields = parent::getFields($cache);
foreach ($fields as $f) {
if ($f->get('name') == 'email') {
$f->getConfiguration();
$f->_config['classes'] = 'auto email typeahead';
$f->_config['autocomplete'] = false;
}
elseif ($f->get('name') == 'name') {
$f->getConfiguration();
$f->_config['classes'] = 'auto name';
}
}
return $fields;
}
static function getUserForm() {
if (!isset(static::$form)) {
$o = static::objects();
......
......@@ -66,7 +66,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
autocomplete="off" autocorrect="off" value="<?php echo $info['email']; ?>" /> </span>
<font class="error">* <?php echo $errors['email']; ?></font>
</td>
</td>
</tr>
<tr>
<td width="160" class="required"> Full Name: </td>
<td>
......@@ -74,7 +74,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<input type="text" size=45 name="name" id="user-name" value="<?php echo $info['name']; ?>" /> </span>
<font class="error">* <?php echo $errors['name']; ?></font>
</td>
</td>
</tr>
<?php
} ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment