mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
Fix concurrency issue.
This commit is contained in:
parent
21cae14ddd
commit
e42af6a952
@ -15,13 +15,14 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$('submitBtn').addEvent('click', function () {
|
$('submitBtn').addEvent('click', function () {
|
||||||
var iframeWindow = $('dialogContentIframe').contentWindow;
|
var iframeWindow = $('dialogContentIframe').contentWindow;
|
||||||
var delay = iframeWindow.submitDialogForm();
|
if (iframeWindow) {
|
||||||
|
var delay = iframeWindow.submitDialogForm();
|
||||||
if (MooDialog.Request.active) {
|
if (MooDialog.Request.active) {
|
||||||
if (!delay) {
|
if (!delay) {
|
||||||
MooDialog.Request.active.close();
|
MooDialog.Request.active.close();
|
||||||
} else {
|
} else {
|
||||||
MooDialog.Request.active.close.delay(3000, MooDialog.Request.active);
|
MooDialog.Request.active.close.delay(3000, MooDialog.Request.active);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user