Skip to content

Commit

Permalink
Fix order of config dialog calls to save/creds/validate
Browse files Browse the repository at this point in the history
  • Loading branch information
knolleary committed Jan 29, 2016
1 parent 7291711 commit a115301
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions editor/js/ui/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -951,20 +951,20 @@ RED.editor = (function() {
RED.nodes.add(editing_config_node);
}

updateConfigNodeSelect(configProperty,configType,editing_config_node.id);

if (configTypeDef.credentials) {
updateNodeCredentials(editing_config_node,configTypeDef.credentials,"node-config-input");
}
if (configTypeDef.oneditsave) {
configTypeDef.oneditsave.call(editing_config_node);
}
if (configTypeDef.credentials) {
updateNodeCredentials(editing_config_node,configTypeDef.credentials,"node-config-input");
}
validateNode(editing_config_node);
for (var i=0;i<editing_config_node.users.length;i++) {
var user = editing_config_node.users[i];
validateNode(user);
}

updateConfigNodeSelect(configProperty,configType,editing_config_node.id);

RED.nodes.dirty(true);
RED.view.redraw(true);
$(this).dialog("close");
Expand Down

0 comments on commit a115301

Please sign in to comment.