mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
adding autocomplete attribute to et2_textbox and et2_passwd and use it in email wizzard/account to stop browser from accidently filling out empty fields
This commit is contained in:
parent
cfd28ae9a9
commit
868e5e0a38
@ -68,6 +68,12 @@ var et2_textbox = et2_inputWidget.extend(
|
||||
"type": "string",
|
||||
"default": et2_no_init,
|
||||
"description": "Perl regular expression eg. '/^[0-9][a-f]{4}$/i'"
|
||||
},
|
||||
"autocomplete": {
|
||||
"name": "Autocomplete",
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"description": "Weither or not browser should autocomplete that field: 'on', 'off', 'default' (use attribute from form)"
|
||||
}
|
||||
},
|
||||
|
||||
@ -107,6 +113,7 @@ var et2_textbox = et2_inputWidget.extend(
|
||||
if(this.options.type == "passwd") {
|
||||
this.input.attr("type", "password");
|
||||
}
|
||||
if (this.options.autocomplete) this.input.attr("autocomplete", this.options.autocomplete);
|
||||
}
|
||||
|
||||
if(this.options.size) {
|
||||
|
Loading…
Reference in New Issue
Block a user