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:
parent
1d23cdad9f
commit
e7dcdb075a
@ -116,7 +116,7 @@
|
|||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="node-input-outport-type"> </label>
|
<label for="node-input-outport-type"> </label>
|
||||||
<select id="node-input-outport-type">
|
<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>
|
<option value="fixed">bind to local port</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="text" id="node-input-outport" style="width: 70px;" placeholder="port">
|
<input type="text" id="node-input-outport" style="width: 70px;" placeholder="port">
|
||||||
@ -199,6 +199,15 @@
|
|||||||
|
|
||||||
$("#node-input-outport-type").change();
|
$("#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>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user