From 6588fe5a9de5dab5e94d8cdbc683a5921e3398be Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Tue, 15 Oct 2013 18:24:49 +0200 Subject: [PATCH] Bug #2355: Now Sunstone datastore DS knows if it should maintain state or be cleared (for instance, when Reset button is clicked) --- src/sunstone/public/js/plugins/datastores-tab.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/js/plugins/datastores-tab.js b/src/sunstone/public/js/plugins/datastores-tab.js index a0367c3798..e6c497d3dd 100644 --- a/src/sunstone/public/js/plugins/datastores-tab.js +++ b/src/sunstone/public/js/plugins/datastores-tab.js @@ -1047,6 +1047,8 @@ function setupCreateDatastoreDialog(){ $create_datastore_dialog.remove(); setupCreateDatastoreDialog(); + window.ds_wizard_is_not_first="false"; + popUpCreateDatastoreDialog(); }); @@ -1055,6 +1057,8 @@ function setupCreateDatastoreDialog(){ $create_datastore_dialog.remove(); setupCreateDatastoreDialog(); + window.ds_wizard_is_not_first="false"; + popUpCreateDatastoreDialog(); $("a[href='#datastore_manual']").click(); }); @@ -1155,8 +1159,12 @@ function popUpCreateDatastoreDialog(){ $('select#datastore_cluster_raw',$create_datastore_dialog).html(clusters_sel()); $create_datastore_dialog.reveal(); $("input#name",$create_datastore_dialog).focus(); - hide_all($create_datastore_dialog); - select_filesystem(); + if(window.ds_wizard_is_not_first != "true") + { + hide_all($create_datastore_dialog); + select_filesystem(); + window.ds_wizard_is_not_first="true"; + } } //Prepares autorefresh