aboutsummaryrefslogtreecommitdiff
path: root/id
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2017-03-28 09:35:39 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2017-03-28 09:35:39 +0200
commit3da6ab43157cbe6ca224e4cd3ee09052d67f4bfb (patch)
tree3f2c2f656820e831b0b1df057998bc99ab668c84 /id
parent93acb35fdf7ca1118c5955a3bfa727619a26d178 (diff)
downloadmoa-id-spss-3da6ab43157cbe6ca224e4cd3ee09052d67f4bfb.tar.gz
moa-id-spss-3da6ab43157cbe6ca224e4cd3ee09052d67f4bfb.tar.bz2
moa-id-spss-3da6ab43157cbe6ca224e4cd3ee09052d67f4bfb.zip
fix problem in javascript lib that is used for BKU selection
Diffstat (limited to 'id')
-rw-r--r--id/server/data/deploy/conf/moa-id/htmlTemplates/javascript_tempalte.js16
-rw-r--r--id/server/moa-id-frontend-resources/src/main/resources/templates/javascript_tempalte.js16
2 files changed, 26 insertions, 6 deletions
diff --git a/id/server/data/deploy/conf/moa-id/htmlTemplates/javascript_tempalte.js b/id/server/data/deploy/conf/moa-id/htmlTemplates/javascript_tempalte.js
index ca920f63b..0c1f6a561 100644
--- a/id/server/data/deploy/conf/moa-id/htmlTemplates/javascript_tempalte.js
+++ b/id/server/data/deploy/conf/moa-id/htmlTemplates/javascript_tempalte.js
@@ -33,7 +33,11 @@ function isIE() {
function bkuOnlineClicked() {
if (isMetro())
document.getElementById("metroDetected").style.display="block";
- document.getElementById("localBKU").style.display="block";
+
+ var localBkuEl = document.getElementById("localBKU");
+ if (localBkuEl)
+ localBkuEl.style.display="block";
+
/* if (checkMandateSSO())
return; */
@@ -49,7 +53,10 @@ function isIE() {
generateIFrame(iFrameURL);
}
function bkuHandyClicked() {
- document.getElementById("localBKU").style.display="none";
+ var localBkuEl = document.getElementById("localBKU");
+ if (localBkuEl)
+ localBkuEl.style.display="block";
+
/* if (checkMandateSSO())
return; */
@@ -65,7 +72,10 @@ function isIE() {
generateIFrame(iFrameURL);
}
function storkClicked() {
- document.getElementById("localBKU").style.display="none";
+ var localBkuEl = document.getElementById("localBKU");
+ if (localBkuEl)
+ localBkuEl.style.display="none";
+
/* if (checkMandateSSO())
return; */
diff --git a/id/server/moa-id-frontend-resources/src/main/resources/templates/javascript_tempalte.js b/id/server/moa-id-frontend-resources/src/main/resources/templates/javascript_tempalte.js
index ca920f63b..0c1f6a561 100644
--- a/id/server/moa-id-frontend-resources/src/main/resources/templates/javascript_tempalte.js
+++ b/id/server/moa-id-frontend-resources/src/main/resources/templates/javascript_tempalte.js
@@ -33,7 +33,11 @@ function isIE() {
function bkuOnlineClicked() {
if (isMetro())
document.getElementById("metroDetected").style.display="block";
- document.getElementById("localBKU").style.display="block";
+
+ var localBkuEl = document.getElementById("localBKU");
+ if (localBkuEl)
+ localBkuEl.style.display="block";
+
/* if (checkMandateSSO())
return; */
@@ -49,7 +53,10 @@ function isIE() {
generateIFrame(iFrameURL);
}
function bkuHandyClicked() {
- document.getElementById("localBKU").style.display="none";
+ var localBkuEl = document.getElementById("localBKU");
+ if (localBkuEl)
+ localBkuEl.style.display="block";
+
/* if (checkMandateSSO())
return; */
@@ -65,7 +72,10 @@ function isIE() {
generateIFrame(iFrameURL);
}
function storkClicked() {
- document.getElementById("localBKU").style.display="none";
+ var localBkuEl = document.getElementById("localBKU");
+ if (localBkuEl)
+ localBkuEl.style.display="none";
+
/* if (checkMandateSSO())
return; */