mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Remove name attribute if passwd widget has autocomplete="off"
This commit is contained in:
parent
a7043964bb
commit
004e1ba646
@ -154,7 +154,23 @@ var et2_textbox = et2_inputWidget.extend([et2_IResizeable],
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Override the parent set_id method to manuipulate the input DOM node
|
||||
*
|
||||
* @param {type} _value
|
||||
* @returns {undefined}
|
||||
*/
|
||||
set_id: function(_value)
|
||||
{
|
||||
this._super.apply(this,arguments);
|
||||
// Remove the name attribute inorder to affect autocomplete="off"
|
||||
// for no password save. ATM seems all browsers ignore autocomplete for
|
||||
// input field inside the form
|
||||
if (this.options.type === "passwd"
|
||||
&& this.options.autocomplete === "off") this.input.removeAttr('name');
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
var node = this.getInputNode();
|
||||
if (node) $j(node).unbind("keypress");
|
||||
|
Loading…
Reference in New Issue
Block a user