1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

Feature #2746: Close wizard dialog when an upload starts

This commit is contained in:
Carlos Martín 2014-03-19 16:19:20 +01:00
parent d8910c0473
commit 5604a14f38
2 changed files with 8 additions and 1 deletions

View File

@ -736,6 +736,10 @@ function setupCreateFileDialog(){
//we this is an file upload we trigger FileUploader
//to start the upload
if (upload){
$create_file_dialog.foundation('reveal', 'close');
$create_file_dialog.empty();
setupCreateFileDialog();
uploader._onInputChange(file_input);
} else {
Sunstone.runAction("File.create", file_obj);

View File

@ -1095,7 +1095,10 @@ function initialize_create_image_dialog(dialog) {
//we this is an image upload we trigger FileUploader
//to start the upload
if (upload){
dialog.foundation('reveal', 'close')
dialog.foundation('reveal', 'close');
dialog.empty();
setupCreateImageDialog();
uploader._onInputChange(file_input);
} else {
Sunstone.runAction("Image.create", img_obj);