mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-23 22:47:57 +01:00
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
<%@page pageEncoding="UTF-8" %>
|
|
<%@include file="/jsp/init.jsp" %>
|
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<div>
|
|
<iframe src='${url}' style="border: 0;width: 100%;height:100%" id="dialogContentIframe"></iframe>
|
|
<div style="float: right;margin-right: 25px">
|
|
<input type="button" class="btn-primary" value="Accept" id="submitBtn"/>
|
|
<input type="button" class="btn-secondary" value="Cancel" id="cancelBtn"/>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$('submitBtn').addEvent('click', function() {
|
|
var iframeWindow = $('dialogContentIframe').contentWindow;
|
|
var delay = iframeWindow.submitDialogForm();
|
|
|
|
if (MooDialog.Request.active) {
|
|
if (!delay) {
|
|
MooDialog.Request.active.close();
|
|
} else {
|
|
MooDialog.Request.active.close.delay(3000, MooDialog.Request.active);
|
|
}
|
|
}
|
|
});
|
|
|
|
$('cancelBtn').addEvent('click', function() {
|
|
if (MooDialog.Request.active) {
|
|
MooDialog.Request.active.close();
|
|
}
|
|
});
|
|
</script> |