Feature #2778: Fix image create dialog

This commit is contained in:
Carlos Martín committed 2014-03-26 16:34:56 +01:00
1 parent 353955335d
commit cba45def08
1 file changed
+2 -1
+2 -1
View File
@@ -246,7 +246,8 @@ var image_actions = {
call: OpenNebula.Image.create,
callback: function(request, response){
addImageElement(request, response);
if ($appmarket_import_dialog || $marketplace_import_dialog) {
if (typeof($appmarket_import_dialog) !== 'undefined' ||
typeof($marketplace_import_dialog) !== 'undefined') {
$create_image_dialog.trigger('close');
} else {
$create_image_dialog.foundation('reveal', 'close');