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