forked from extern/egroupware
Change autocomplete default value for passwd widget from "" to "off"
This commit is contained in:
parent
8f7a05544e
commit
e611eed179
@ -73,7 +73,7 @@ var et2_textbox = et2_inputWidget.extend([et2_IResizeable],
|
|||||||
"name": "Autocomplete",
|
"name": "Autocomplete",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "",
|
"default": "",
|
||||||
"description": "Weither or not browser should autocomplete that field: 'on', 'off', 'default' (use attribute from form)"
|
"description": "Weither or not browser should autocomplete that field: 'on', 'off', 'default' (use attribute from form). Default value for type password is set to off."
|
||||||
},
|
},
|
||||||
onkeypress: {
|
onkeypress: {
|
||||||
name: "onKeypress",
|
name: "onKeypress",
|
||||||
@ -120,6 +120,8 @@ var et2_textbox = et2_inputWidget.extend([et2_IResizeable],
|
|||||||
{
|
{
|
||||||
case "passwd":
|
case "passwd":
|
||||||
this.input.attr("type", "password");
|
this.input.attr("type", "password");
|
||||||
|
// Make autocomplete default value off for password field
|
||||||
|
if (this.options.autocomplete === "") this.options.autocomplete = "off";
|
||||||
break;
|
break;
|
||||||
case "hidden":
|
case "hidden":
|
||||||
this.input.attr("type", "hidden");
|
this.input.attr("type", "hidden");
|
||||||
|
@ -80,7 +80,7 @@
|
|||||||
</row>
|
</row>
|
||||||
<row disabled="@is_root">
|
<row disabled="@is_root">
|
||||||
<description value="Password"/>
|
<description value="Password"/>
|
||||||
<passwd id="password"/>
|
<passwd id="password" autocomplete="on"/>
|
||||||
</row>
|
</row>
|
||||||
<row disabled="@is_root">
|
<row disabled="@is_root">
|
||||||
<description/>
|
<description/>
|
||||||
|
@ -295,7 +295,7 @@
|
|||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<description for="sudo[passwd]" value="Password"/>
|
<description for="sudo[passwd]" value="Password"/>
|
||||||
<passwd id="sudo[passwd]"/>
|
<passwd id="sudo[passwd]" autocomplete="on"/>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<description/>
|
<description/>
|
||||||
|
Loading…
Reference in New Issue
Block a user