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

Update udp node bind local options

This commit is contained in:
Nick O'Leary 2014-03-31 13:06:29 +01:00
parent 1d23cdad9f
commit e7dcdb075a

View File

@ -116,7 +116,7 @@
<div class="form-row">
<label for="node-input-outport-type">&nbsp;</label>
<select id="node-input-outport-type">
<option value="random">use random local port</option>
<option id="node-input-outport-type-random" value="random">use random local port</option>
<option value="fixed">bind to local port</option>
</select>
<input type="text" id="node-input-outport" style="width: 70px;" placeholder="port">
@ -199,6 +199,15 @@
$("#node-input-outport-type").change();
$("#node-input-multicast").change(function() {
var type = $(this).children("option:selected").val();
if (type == "false") {
$("#node-input-outport-type-random").html("bind to random local port");
} else {
$("#node-input-outport-type-random").html("bind to target port");
}
});
$("#node-input-multicast").change();
}
});
</script>