Commit 946bc55e authored by EKbfh's avatar EKbfh 🐼
Browse files

Merge branch 'fix-datacenter-list-in-node' into 'master'

Update tower/ui/node_logic.js

See merge request !43
parents 9b827fb1 df39b806
Pipeline #18521 passed with stages
in 10 minutes and 41 seconds
......@@ -26,6 +26,16 @@ var node_logic = {
},
on_add: function () {
var i = $$("datacenter_list").data.pull;
var d = $$("node_form").elements.datacenter;
var my_keys = Object.keys(i);
for (j = 0; j < my_keys.length; j++) {
if (my_keys[j] != 'id') {
var obj = i[my_keys[j]];
d.data.options.add({id: obj.id, value: obj.name});
}
}
node_logic.show_form();
$$("node_form").setValues({
login_as: "ansible",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment