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

Bug #2795: fix template create wizard

This commit is contained in:
Carlos Martín 2014-03-27 17:59:00 +01:00
parent 626f56d4aa
commit 04aa1e3035

View File

@ -226,7 +226,8 @@ var template_actions = {
type: "create",
call: OpenNebula.Template.create,
callback: function(request, response){
if ($appmarket_import_dialog || $marketplace_import_dialog) {
if (typeof($appmarket_import_dialog) !== 'undefined' ||
typeof($marketplace_import_dialog) !== 'undefined') {
$create_template_dialog.trigger('close');
} else {
$create_template_dialog.foundation('reveal', 'close');