From 7dbd38d2ee2fc090b1e1d6106de425c0a89392bd Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Mon, 10 Mar 2014 11:56:22 +0100 Subject: [PATCH] feature #2746: Fix cluster reset --- src/sunstone/public/js/plugins/clusters-tab.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/sunstone/public/js/plugins/clusters-tab.js b/src/sunstone/public/js/plugins/clusters-tab.js index 77b4b5df7f..0a579c6f0f 100644 --- a/src/sunstone/public/js/plugins/clusters-tab.js +++ b/src/sunstone/public/js/plugins/clusters-tab.js @@ -473,9 +473,9 @@ function popUpCreateClusterDialog(){ filter_expr = "-" ; - if ($create_cluster_dialog) + if ($("#create_cluster_dialog")) { - $create_cluster_dialog.html(""); + $("#create_cluster_dialog").remove(); dialogs_context.append('
'); } @@ -505,9 +505,8 @@ function popUpUpdateClusterDialog(){ var dialog = $create_cluster_dialog; - if (dialog) - { - dialog.html(""); + if ($("#create_cluster_dialog")) { + $("#create_cluster_dialog").remove(); dialogs_context.append('
'); }