volume-upload: UI > dialog widget - args.form.fileUpload.postUpload - fix a bug that loading image (spinning wheel, freezing screen) does not disappear after action succeeds/fails.

This commit is contained in:
Jessica Wang 2015-01-30 17:08:21 -08:00
parent e08522dbaa
commit 31dea7de2e

View File

@ -738,6 +738,9 @@
});
$('div.overlay').remove();
$form.find('.loading-overlay').remove();
$('div.loading-overlay').remove();
$('.tooltip-box').remove();
$formContainer.remove();
$(this).dialog('destroy');
@ -745,7 +748,10 @@
$('.hovered-elem').hide();
},
error: function(msg) {
$('div.overlay').remove();
$form.find('.loading-overlay').remove();
$('div.loading-overlay').remove();
cloudStack.dialog.error({ message: msg });
}
}