mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Set autocomplete to disabled in form input elements
This commit is contained in:
parent
bb67049d90
commit
14f6788ab9
@ -209,7 +209,7 @@
|
|||||||
that.input.css("margin"+d,0);
|
that.input.css("margin"+d,0);
|
||||||
});
|
});
|
||||||
|
|
||||||
["type","placeholder"].forEach(function(d) {
|
["type","placeholder","autocomplete"].forEach(function(d) {
|
||||||
var m = that.element.attr(d);
|
var m = that.element.attr(d);
|
||||||
that.input.attr(d,m);
|
that.input.attr(d,m);
|
||||||
});
|
});
|
||||||
|
@ -567,13 +567,13 @@ RED.editor = (function() {
|
|||||||
type: "text",
|
type: "text",
|
||||||
style: "margin-left: 5px; width: calc(40% - 8px)",
|
style: "margin-left: 5px; width: calc(40% - 8px)",
|
||||||
placeholder: RED._("common.label.name")
|
placeholder: RED._("common.label.name")
|
||||||
}).appendTo(row).val(opt.name);
|
}).attr("autocomplete","disable").appendTo(row).val(opt.name);
|
||||||
}
|
}
|
||||||
var valueField = $('<input/>',{
|
var valueField = $('<input/>',{
|
||||||
class: "node-input-env-value",
|
class: "node-input-env-value",
|
||||||
type: "text",
|
type: "text",
|
||||||
style: "margin-left: 5px; width: calc(60% - 8px)"
|
style: "margin-left: 5px; width: calc(60% - 8px)"
|
||||||
}).appendTo(row)
|
}).attr("autocomplete","disable").appendTo(row)
|
||||||
|
|
||||||
valueField.typedInput({default:'str',
|
valueField.typedInput({default:'str',
|
||||||
types:['str','num','bool','json','bin','env']
|
types:['str','num','bool','json','bin','env']
|
||||||
@ -721,6 +721,7 @@ RED.editor = (function() {
|
|||||||
$('<input type="password" style="display: none;" />').prependTo(dialogForm);
|
$('<input type="password" style="display: none;" />').prependTo(dialogForm);
|
||||||
$('<input type="text" style="display: none;" />').prependTo(dialogForm);
|
$('<input type="text" style="display: none;" />').prependTo(dialogForm);
|
||||||
dialogForm.on("submit", function(e) { e.preventDefault();});
|
dialogForm.on("submit", function(e) { e.preventDefault();});
|
||||||
|
dialogForm.find('input').attr("autocomplete","disable");
|
||||||
return dialogForm;
|
return dialogForm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user