mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-22 04:42:39 +09:00
Use new ResourceSelect in host creation form
This commit is contained in:
1 parent
bb3cd87d74
commit
e0fcd997d4
1 file changed
+6
-1
@@ -267,7 +267,12 @@ define(function(require) {
|
||||
var cluster_id = $("#host_cluster_id .resource_list_select", context).val();
|
||||
if (!cluster_id) cluster_id = "-1";
|
||||
|
||||
ResourceSelect.insert('#host_cluster_id', context, "Cluster", cluster_id, false);
|
||||
ResourceSelect.insert({
|
||||
context: $('#host_cluster_id', context),
|
||||
resourceName: 'Cluster',
|
||||
initValue: cluster_id,
|
||||
includeDefaultCluster: true
|
||||
});
|
||||
|
||||
$("#host_type_mad", context).change();
|
||||
|
||||
|
||||
Reference in new issue
Block a user