From e0fcd997d4fcee8d6722525f6a5739e14fea2360 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Wed, 20 Jan 2016 18:12:06 +0100 Subject: [PATCH] Use new ResourceSelect in host creation form --- .../public/app/tabs/hosts-tab/form-panels/create.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/app/tabs/hosts-tab/form-panels/create.js b/src/sunstone/public/app/tabs/hosts-tab/form-panels/create.js index 84a9e429c9..07b47a3088 100644 --- a/src/sunstone/public/app/tabs/hosts-tab/form-panels/create.js +++ b/src/sunstone/public/app/tabs/hosts-tab/form-panels/create.js @@ -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();