- Fix MooDialog.Request.active is null

This commit is contained in:
Paulo Gustavo Veiga 2012-09-08 14:32:43 -03:00
parent 0b0cb960f7
commit 861d265891

View File

@ -28,8 +28,10 @@
$('download').setAttribute('value', context.formatType); $('download').setAttribute('value', context.formatType);
iframeForm.submit(); iframeForm.submit();
} }
if (MooDialog.Request.active) {
MooDialog.Request.active.close(); MooDialog.Request.active.close();
} }
}
}); });
$('cancelBtn').addEvent('click', function () { $('cancelBtn').addEvent('click', function () {