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(''); }