1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

more specific class selectors for show/hide items

This commit is contained in:
Steve-Mcl 2021-02-20 15:52:14 +00:00
parent ab4a9e72d4
commit c20bab2436

View File

@ -157,9 +157,9 @@
var confNode = RED.nodes.node($("#node-input-broker").val());
var v5 = confNode && confNode.protocolVersion == "5";
if(v5) {
$(".mqtt5").show();
$("div.form-row.mqtt5").show();
} else {
$(".mqtt5").hide();
$("div.form-row.mqtt5").hide();
}
});
if (this.qos === undefined) {
@ -282,9 +282,9 @@
var confNode = RED.nodes.node($("#node-input-broker").val());
var v5 = confNode && confNode.protocolVersion == "5";
if(v5) {
$(".mqtt5").show();
$("div.form-row.mqtt5").show();
} else {
$(".mqtt5").hide();
$("div.form-row.mqtt5").hide();
}
});
$("#node-input-correlationData").typedInput({
@ -600,9 +600,9 @@
$("#node-config-input-protocolVersion").change(function(){
var v5 = $("#node-config-input-protocolVersion").val() == "5";
if(v5) {
$(".mqtt5").show();
$("div.form-row.mqtt5").show();
} else {
$(".mqtt5").hide();
$("div.form-row.mqtt5").hide();
}
updateSessionExpiryIntervalVisibility();
});