diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-06-10 10:24:54 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-06-10 10:24:54 +0200 |
commit | 8aaf35c6e1da8d49e1c36d9b691ae00fb3730804 (patch) | |
tree | 8daf7ad8dfa6b074c5967b578135bc87c46673c1 /pdf-as-web/src/main/resources/template_sl.html | |
parent | 68a6b55068c5d5a1a2656f642c6b870fbe3cd141 (diff) | |
download | pdf-as-4-8aaf35c6e1da8d49e1c36d9b691ae00fb3730804.tar.gz pdf-as-4-8aaf35c6e1da8d49e1c36d9b691ae00fb3730804.tar.bz2 pdf-as-4-8aaf35c6e1da8d49e1c36d9b691ae00fb3730804.zip |
process locale Parameter and provide it to BKU4.0.0-RC3
Diffstat (limited to 'pdf-as-web/src/main/resources/template_sl.html')
-rw-r--r-- | pdf-as-web/src/main/resources/template_sl.html | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/pdf-as-web/src/main/resources/template_sl.html b/pdf-as-web/src/main/resources/template_sl.html index 8399706c..5568ec7a 100644 --- a/pdf-as-web/src/main/resources/template_sl.html +++ b/pdf-as-web/src/main/resources/template_sl.html @@ -31,7 +31,17 @@ div.content { } </style> <script language="javascript" type="text/javascript"> + function adaptWindowSizes() { + var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 221) + var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 221) + var appletWidth = document.getElementById("appletWidth"); + var appletHeight = document.getElementById("appletHeight"); + appletWidth.value = w; + appletHeight.value = h; + } + function onAnmeldeSubmit() { + adaptWindowSizes(); document.CustomizedForm.submit(); document.CustomizedForm.Senden.disabled=true; document.CustomizedForm.Senden.hidden = "hidden"; @@ -45,12 +55,15 @@ div.content { <div class="frameTC"> <div class="content"> <form name="CustomizedForm" action="##BKU##" method="post" - enctype="multipart/form-data"> + enctype="multipart/x-www-form-urlencoded"> <input class="button" type="submit" value="Starte Anmeldung" name="Senden"> <input type="hidden" name="XMLRequest" value="##XMLRequest##"> <input type="hidden" name="DataURL" value="##DataURL##"> - <input type="hidden" name="locale_" value="##LOCALE##" /> + <input type="hidden" name="locale" value="##LOCALE##" /> + <input type="hidden" name="iframe_" value="on" /> + <input type="hidden" id="appletWidth" name="appletWidth" value="221" /> + <input type="hidden" id="appletHeight" name="appletHeight" value="221" /> ##ADDITIONAL## </form> <span id="spin" style="display:block; |