From 2669f57e9854fcbade955740f57df8e94beee251 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Mon, 20 Oct 2014 15:53:50 +0200 Subject: [PATCH] bug #3240: Host create dialog is not closed after submit --- src/sunstone/public/js/plugins/hosts-tab.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/js/plugins/hosts-tab.js b/src/sunstone/public/js/plugins/hosts-tab.js index 30f1a4a095..7585f284d0 100644 --- a/src/sunstone/public/js/plugins/hosts-tab.js +++ b/src/sunstone/public/js/plugins/hosts-tab.js @@ -183,6 +183,10 @@ var host_actions = { // Reset the create wizard addHostElement(request, response); notifyCustom(tr("Host created"), " ID: " + response.HOST.ID, false); + + if (request.request.data[0].host.vm_mad != "vcenter") { + $create_host_dialog.foundation('reveal', 'close'); + } }, error : onError }, @@ -483,7 +487,7 @@ function generateCPUProgressBar(host, host_share_flag) { pb_allocated_cpu = quotaBarHtml(allocated_cpu, max_cpu, info_str); } - var pb_real_cpu + var pb_real_cpu if (host_share.USED_CPU) { var real_cpu = parseInt(host_share.USED_CPU);