From dee7c223d6fe761a822acffae18fa87a0b1b22af Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Fri, 10 Jan 2014 17:56:22 -0600 Subject: [PATCH] Allow autocomplete on email address --- include/class.dynamic_forms.php | 16 ---------------- include/staff/ticket-open.inc.php | 4 ++-- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php index ca0906688..e40e037f6 100644 --- a/include/class.dynamic_forms.php +++ b/include/class.dynamic_forms.php @@ -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(); diff --git a/include/staff/ticket-open.inc.php b/include/staff/ticket-open.inc.php index 489d45ed4..fe8c38256 100644 --- a/include/staff/ticket-open.inc.php +++ b/include/staff/ticket-open.inc.php @@ -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 } ?> -- GitLab