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:
parent
36e80dbdf7
commit
6588fe5a9d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user