Skip to content
Snippets Groups Projects
Commit dee7c223 authored by Jared Hancock's avatar Jared Hancock
Browse files

Allow autocomplete on email address

parent 7bc88c39
Branches
Tags
No related merge requests found
...@@ -148,22 +148,6 @@ class UserForm extends DynamicForm { ...@@ -148,22 +148,6 @@ class UserForm extends DynamicForm {
return $os->filter(array('type'=>'U')); 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() { static function getUserForm() {
if (!isset(static::$form)) { if (!isset(static::$form)) {
$o = static::objects(); $o = static::objects();
......
...@@ -66,7 +66,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); ...@@ -66,7 +66,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
autocomplete="off" autocorrect="off" value="<?php echo $info['email']; ?>" /> </span> autocomplete="off" autocorrect="off" value="<?php echo $info['email']; ?>" /> </span>
<font class="error">* <?php echo $errors['email']; ?></font> <font class="error">* <?php echo $errors['email']; ?></font>
</td> </td>
</td> </tr>
<tr> <tr>
<td width="160" class="required"> Full Name: </td> <td width="160" class="required"> Full Name: </td>
<td> <td>
...@@ -74,7 +74,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); ...@@ -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> <input type="text" size=45 name="name" id="user-name" value="<?php echo $info['name']; ?>" /> </span>
<font class="error">* <?php echo $errors['name']; ?></font> <font class="error">* <?php echo $errors['name']; ?></font>
</td> </td>
</td> </tr>
<?php <?php
} ?> } ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment