mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	more specific class selectors for show/hide items
This commit is contained in:
		| @@ -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(); | ||||
|             }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user