2012-06-30 07:26:21 +02:00
|
|
|
<%@page pageEncoding="UTF-8" %>
|
|
|
|
<%@include file="/jsp/init.jsp" %>
|
|
|
|
|
2012-06-16 19:32:26 +02:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<iframe src='${url}' style="border: 0;width: 100%;height:100%" id="dialogContentIframe"></iframe>
|
|
|
|
<div style="float: right;margin-right: 25px">
|
2012-07-01 22:56:31 +02:00
|
|
|
<input type="button" class="btn-primary" value="<spring:message code="ACCEPT"/>" id="submitBtn"/>
|
|
|
|
<input type="button" class="btn-secondary" value="<spring:message code="CANCEL"/>" id="cancelBtn"/>
|
2012-06-16 19:32:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$('submitBtn').addEvent('click', function() {
|
|
|
|
var iframeWindow = $('dialogContentIframe').contentWindow;
|
2012-06-20 22:48:29 +02:00
|
|
|
var delay = iframeWindow.submitDialogForm();
|
2012-06-16 19:32:26 +02:00
|
|
|
|
2012-06-22 06:34:33 +02:00
|
|
|
if (MooDialog.Request.active) {
|
|
|
|
if (!delay) {
|
|
|
|
MooDialog.Request.active.close();
|
|
|
|
} else {
|
|
|
|
MooDialog.Request.active.close.delay(3000, MooDialog.Request.active);
|
|
|
|
}
|
2012-06-16 19:32:26 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
$('cancelBtn').addEvent('click', function() {
|
|
|
|
if (MooDialog.Request.active) {
|
|
|
|
MooDialog.Request.active.close();
|
|
|
|
}
|
|
|
|
});
|
2012-05-27 23:15:46 +02:00
|
|
|
</script>
|