Fixed a very long-standing but with a unclosed <div> tag. Also forced autocomplete to OFF for the new items. I wouldn't really care, but this was causing a bug with Chrome where the autocomplete was forcing the radio buttons to be unchecked.
git-svn-id: file:///svn-source/pmgr/branches/hosted_migration_20130215@1027 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -68,7 +68,7 @@ function contactMethodDiv($obj, $type, $legend, $values = null) {
|
||||
'</DIV>' . "\n" .
|
||||
|
||||
// BEGIN method-div
|
||||
'<div id="'.$type.'-%{id}-method-div"' . "\n" .
|
||||
'<div id="'.$type.'-%{id}-method-div"' . '>' . "\n" .
|
||||
|
||||
$obj->element
|
||||
('form_table',
|
||||
@@ -131,14 +131,18 @@ function contactMethodTypeDiv($obj, $type, $stype, $values = null) {
|
||||
elseif ($stype === 'new') {
|
||||
$fields = array
|
||||
('type' => array('label_attributes' => array('class' => 'required'),
|
||||
'opts' => array('options' => $obj->varstore['phoneTypes']),
|
||||
'opts' => array('autocomplete' => 'off',
|
||||
'options' => $obj->varstore['phoneTypes']),
|
||||
'after' => "Physical type of the phone."),
|
||||
'phone' => array('label_attributes' => array('class' => 'required empty'),
|
||||
'opts' => array('autocomplete' => 'off'),
|
||||
'after' => "Required: Phone number."),
|
||||
'ext' => array('name' => "Extension",
|
||||
'label_attributes' => array('class' => 'optional empty'),
|
||||
'opts' => array('autocomplete' => 'off'),
|
||||
'after' => "Optional: Extension number."),
|
||||
'comment' => array('label_attributes' => array('class' => 'optional empty'),
|
||||
'opts' => array('autocomplete' => 'off'),
|
||||
'after' => "Optional: Comments about this phone number."),
|
||||
);
|
||||
}
|
||||
@@ -167,17 +171,23 @@ function contactMethodTypeDiv($obj, $type, $stype, $values = null) {
|
||||
elseif ($stype === 'new') {
|
||||
$fields = array
|
||||
('address' => array('label_attributes' => array('class' => 'required empty'),
|
||||
'opts' => array('autocomplete' => 'off'),
|
||||
'after' => "Required: First line of mailing address."),
|
||||
'city' => array('label_attributes' => array('class' => 'required empty'),
|
||||
'opts' => array('autocomplete' => 'off'),
|
||||
'after' => "Required."),
|
||||
'state' => array('label_attributes' => array('class' => 'required empty'),
|
||||
'opts' => array('autocomplete' => 'off'),
|
||||
'after' => "Required."),
|
||||
'postcode' => array('name' => 'Zip Code',
|
||||
'label_attributes' => array('class' => 'required empty'),
|
||||
'opts' => array('autocomplete' => 'off'),
|
||||
'after' => "Required."),
|
||||
'country' => array('label_attributes' => array('class' => 'optional empty'),
|
||||
'opts' => array('autocomplete' => 'off'),
|
||||
'after' => "Optional: USA is presumed."),
|
||||
'comment' => array('label_attributes' => array('class' => 'optional empty'),
|
||||
'opts' => array('autocomplete' => 'off'),
|
||||
'after' => "Optional: Comments about this mailing address."),
|
||||
);
|
||||
}
|
||||
@@ -208,8 +218,10 @@ function contactMethodTypeDiv($obj, $type, $stype, $values = null) {
|
||||
elseif ($stype === 'new') {
|
||||
$fields = array
|
||||
('email' => array('label_attributes' => array('class' => 'required empty'),
|
||||
'after' => "Required: E-mail address."),
|
||||
'opts' => array('autocomplete' => 'off'),
|
||||
'after' => "Required: E-mail address."),
|
||||
'comment' => array('label_attributes' => array('class' => 'optional empty'),
|
||||
'opts' => array('autocomplete' => 'off'),
|
||||
'after' => "Optional: Comments about this email address."),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user