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:
parent
d8910c0473
commit
5604a14f38
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user