mirror of https://github.com/node-red/node-red.git
Tidy up typedInput syntax
parent
5f8804c25c
commit
3d398cfd53
|
@ -356,13 +356,13 @@ RED.editor = (function() {
|
|||
function attachPropertyChangeHandler(node,definition,property,prefix) {
|
||||
var input = $("#"+prefix+"-"+property);
|
||||
if (definition !== undefined && "format" in definition[property] && definition[property].format !== "" && input[0].nodeName === "DIV") {
|
||||
$("#"+prefix+"-"+property).on('change keyup', function(event,) {
|
||||
$("#"+prefix+"-"+property).on('change keyup', function(event) {
|
||||
if (!$(this).attr("skipValidation")) {
|
||||
validateNodeEditor(node,prefix);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$("#"+prefix+"-"+property).on("change", function(event,skipValidation) {
|
||||
$("#"+prefix+"-"+property).on("change", function(event) {
|
||||
if (!$(this).attr("skipValidation")) {
|
||||
validateNodeEditor(node,prefix);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue