Fix defaulting of email auth value (and linting)

This commit is contained in:
Dave Conway-Jones 2023-03-27 20:34:46 +01:00
parent 9a57958a1e
commit 8320571630
No known key found for this signature in database
GPG Key ID: 1DDB0E91A28C2643
2 changed files with 28 additions and 20 deletions

View File

@ -127,6 +127,10 @@
return (this.dname)?"node_label_italic":""; return (this.dname)?"node_label_italic":"";
}, },
oneditprepare: function() { oneditprepare: function() {
if (this.authtype === undefined) {
this.authtype = "BASIC";
$("#node-input-authtype").val('BASIC');
}
if (this.credentials.global) { if (this.credentials.global) {
$('#node-tip').show(); $('#node-tip').show();
} else { } else {
@ -335,6 +339,10 @@
}, },
oneditprepare: function() { oneditprepare: function() {
var that = this; var that = this;
if (this.authtype === undefined) {
this.authtype = "BASIC";
$("#node-input-authtype").val('BASIC');
}
if (this.credentials.global) { if (this.credentials.global) {
$('#node-tip').show(); $('#node-tip').show();
} else { } else {