1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Bug #2355: Now Sunstone datastore DS knows if it should maintain state or be cleared (for instance, when Reset button is clicked)

This commit is contained in:
Tino Vazquez 2013-10-15 18:24:49 +02:00
parent 36e80dbdf7
commit 6588fe5a9d

View File

@ -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