Fix dialogs in firefox.

This commit is contained in:
Paulo Gustavo Veiga 2012-07-13 01:08:12 -03:00
parent a82439975d
commit 41c1113058
2 changed files with 7 additions and 3 deletions

View File

@ -54,6 +54,9 @@ cp $BASE_DIR/wisemapping.xml $JETTY_DIR/contexts/
# Distribute scripts
cp -r $BASE_DIR/../wise-webapp/src/test/sql $TARGET_DIR/wisemapping-$WISE_VERSION/config
# Store version
echo $1 $WISE_WEBAPP_DIR/version
# Zip all ...
cd $TARGET_DIR
zip -r wisemapping-$WISE_VERSION.zip wisemapping-$WISE_VERSION

View File

@ -4,7 +4,8 @@
<!DOCTYPE HTML>
<div>
<iframe src='${url}' style="border: 0;width: 100%;height:100%" id="dialogContentIframe"></iframe>
<iframe src='${url}' style="border: 0;width: 100%;height:100%;min-height:400px;overflow-y: auto;"
id="dialogContentIframe"></iframe>
<div style="float: right;margin-right: 25px">
<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"/>
@ -12,7 +13,7 @@
</div>
<script type="text/javascript">
$('submitBtn').addEvent('click', function() {
$('submitBtn').addEvent('click', function () {
var iframeWindow = $('dialogContentIframe').contentWindow;
var delay = iframeWindow.submitDialogForm();
@ -25,7 +26,7 @@
}
});
$('cancelBtn').addEvent('click', function() {
$('cancelBtn').addEvent('click', function () {
if (MooDialog.Request.active) {
MooDialog.Request.active.close();
}