aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2013-11-08 12:52:35 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2013-11-08 12:52:35 +0100
commitf1bf406b5c17a2fd9ea4ffe43c559b5953173948 (patch)
tree7371d2d9265696e9533977b57bd68846f174ca3e /id/server/idserverlib
parent87600aff054cf60a1d6e272b0d993d852aaf4763 (diff)
downloadmoa-id-spss-f1bf406b5c17a2fd9ea4ffe43c559b5953173948.tar.gz
moa-id-spss-f1bf406b5c17a2fd9ea4ffe43c559b5953173948.tar.bz2
moa-id-spss-f1bf406b5c17a2fd9ea4ffe43c559b5953173948.zip
Bugix:
--fix an error with SLLayerTemplate and local BKU
Diffstat (limited to 'id/server/idserverlib')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/GetIdentityLinkFormBuilder.java8
-rw-r--r--id/server/idserverlib/src/main/resources/resources/templates/loginFormFull.html33
2 files changed, 24 insertions, 17 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/GetIdentityLinkFormBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/GetIdentityLinkFormBuilder.java
index 7753b4011..1e564a55f 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/GetIdentityLinkFormBuilder.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/GetIdentityLinkFormBuilder.java
@@ -156,14 +156,14 @@ public class GetIdentityLinkFormBuilder extends Builder {
}
if (MiscUtil.isNotEmpty(appletheigth))
- htmlForm = replaceTag(htmlForm, APPLETHEIGHT_TAG, appletheigth, true, ALL);
+ htmlForm = replaceTag(htmlForm, APPLETHEIGHT_TAG, appletheigth, false, ALL);
else
- htmlForm = replaceTag(htmlForm, APPLETHEIGHT_TAG, "160", true, ALL);
+ htmlForm = replaceTag(htmlForm, APPLETHEIGHT_TAG, "160", false, ALL);
if (MiscUtil.isNotEmpty(appletwidth))
- htmlForm = replaceTag(htmlForm, APPLETWIDTH_TAG, appletwidth, true, ALL);
+ htmlForm = replaceTag(htmlForm, APPLETWIDTH_TAG, appletwidth, false, ALL);
else
- htmlForm = replaceTag(htmlForm, APPLETWIDTH_TAG, "250", true, ALL);
+ htmlForm = replaceTag(htmlForm, APPLETWIDTH_TAG, "250", false, ALL);
return htmlForm;
}
diff --git a/id/server/idserverlib/src/main/resources/resources/templates/loginFormFull.html b/id/server/idserverlib/src/main/resources/resources/templates/loginFormFull.html
index 99a66727b..801a2dbf1 100644
--- a/id/server/idserverlib/src/main/resources/resources/templates/loginFormFull.html
+++ b/id/server/idserverlib/src/main/resources/resources/templates/loginFormFull.html
@@ -172,9 +172,9 @@
}
#bku_header h2 {
- font-size: 0.75em;
- margin-top: -0.37em;
- padding-top: 0.37em;
+ font-size: 0.8em;
+ margin-top: -0.4em;
+ padding-top: 0.4em;
}
#bkulogin {
@@ -208,9 +208,9 @@
}
#bku_header h2 {
- font-size: 0.8em;
- margin-top: -0.40em;
- padding-top: 0.40em;
+ font-size: 0.9em;
+ margin-top: -0.45em;
+ padding-top: 0.45em;
}
#bkulogin {
@@ -242,9 +242,9 @@
}
#bku_header h2 {
- font-size: 0.9em;
- margin-top: -0.45em;
- padding-top: 0.45em;
+ font-size: 1.0em;
+ margin-top: -0.50em;
+ padding-top: 0.50em;
}
}
@@ -394,7 +394,7 @@
* {
margin: 0;
padding: 0;
- font-family: "#FONTTYPE#";
+ font-family: #FONTTYPE#;
}
#selectArea {
@@ -705,7 +705,14 @@
}
}
}
-
+ function onChangeChecks() {
+ if (top.innerWidth < 650) {
+ document.getElementById("moaidform").setAttribute("target","_parent");
+ } else {
+ document.getElementById("moaidform").removeAttribute("target");
+ }
+
+ }
/* function setSSOSelection() {
document.getElementById("useSSO").value = "false";
var checkbox = document.getElementById("SSOCheckBox");
@@ -733,7 +740,7 @@
</script>
<title>Anmeldung mittels Bürgerkarte oder Handy-Signatur</title>
</head>
- <body>
+ <body onload="onChangeChecks();" onresize="onChangeChecks();">
<div id="page" >
<div id="page1" class="case selected-case" role="main">
<h2 class="OA_header"
@@ -787,7 +794,7 @@
</div>
</div>
<div id="localBKU">
- <form method="get" id="moaidform" action="#AUTH_URL#" class="verticalcenter">
+ <form method="get" id="moaidform" action="#AUTH_URL#" class="verticalcenter" target="_parent">
<input type="hidden" name="bkuURI" value="#LOCAL#">
<input type="hidden" name="useMandate" id="useMandate">
<input type="hidden" name="SSO" id="useSSO">