Fix concurrency issue.

This commit is contained in:
Paulo Gustavo Veiga 2012-08-27 21:56:39 -03:00
parent 21cae14ddd
commit e42af6a952

View File

@ -15,8 +15,8 @@
<script type="text/javascript"> <script type="text/javascript">
$('submitBtn').addEvent('click', function () { $('submitBtn').addEvent('click', function () {
var iframeWindow = $('dialogContentIframe').contentWindow; var iframeWindow = $('dialogContentIframe').contentWindow;
if (iframeWindow) {
var delay = iframeWindow.submitDialogForm(); var delay = iframeWindow.submitDialogForm();
if (MooDialog.Request.active) { if (MooDialog.Request.active) {
if (!delay) { if (!delay) {
MooDialog.Request.active.close(); MooDialog.Request.active.close();
@ -24,6 +24,7 @@
MooDialog.Request.active.close.delay(3000, MooDialog.Request.active); MooDialog.Request.active.close.delay(3000, MooDialog.Request.active);
} }
} }
}
}); });
$('cancelBtn').addEvent('click', function () { $('cancelBtn').addEvent('click', function () {