mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
50f1a17920
commit
400f51d921
@ -105,7 +105,7 @@
|
|||||||
return this.name?"node_label_italic":"";
|
return this.name?"node_label_italic":"";
|
||||||
},
|
},
|
||||||
oneditprepare: function() {
|
oneditprepare: function() {
|
||||||
if (this.ircserver !== undefined) {
|
if ((this.ircserver !== undefined) && (this.ircserver !== "")) {
|
||||||
this.channel = this.channel || RED.nodes.node(this.ircserver).channel;
|
this.channel = this.channel || RED.nodes.node(this.ircserver).channel;
|
||||||
$("#node-input-channel").val(this.channel);
|
$("#node-input-channel").val(this.channel);
|
||||||
}
|
}
|
||||||
@ -165,13 +165,13 @@
|
|||||||
icon: "hash.png",
|
icon: "hash.png",
|
||||||
align: "right",
|
align: "right",
|
||||||
label: function() {
|
label: function() {
|
||||||
return this.name || (this.ircserver)?RED.nodes.node(this.ircserver).label():"irc";
|
return this.name || (this.ircserver ? RED.nodes.node(this.ircserver).label() : "irc");
|
||||||
},
|
},
|
||||||
labelStyle: function() {
|
labelStyle: function() {
|
||||||
return this.name?"node_label_italic":"";
|
return this.name?"node_label_italic":"";
|
||||||
},
|
},
|
||||||
oneditprepare: function() {
|
oneditprepare: function() {
|
||||||
if (this.ircserver !== undefined) {
|
if ((this.ircserver !== undefined) && (this.ircserver !== "")) {
|
||||||
this.channel = this.channel || RED.nodes.node(this.ircserver).channel;
|
this.channel = this.channel || RED.nodes.node(this.ircserver).channel;
|
||||||
$("#node-input-channel").val(this.channel);
|
$("#node-input-channel").val(this.channel);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user