aboutsummaryrefslogtreecommitdiff
path: root/id/server
diff options
context:
space:
mode:
Diffstat (limited to 'id/server')
-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; */