aboutsummaryrefslogtreecommitdiff
path: root/id/server/data/deploy/conf/moa-id/htmlTemplates/javascript_tempalte.js
diff options
context:
space:
mode:
Diffstat (limited to 'id/server/data/deploy/conf/moa-id/htmlTemplates/javascript_tempalte.js')
-rw-r--r--id/server/data/deploy/conf/moa-id/htmlTemplates/javascript_tempalte.js20
1 files changed, 16 insertions, 4 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 0c1f6a561..cc4714006 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
@@ -126,13 +126,12 @@ function isIE() {
}
}
}
- function onChangeChecks() {
+ function onChangeChecks() {
if (self.innerWidth < 650) {
document.getElementById("moaidform").setAttribute("target","_parent");
} else {
document.getElementById("moaidform").removeAttribute("target");
}
-
}
function checkIfBrowserSupportsJava(){
@@ -234,8 +233,21 @@ function isIE() {
console.log("Local BKU NOT available")
}
} catch(e) {console.log("Local BKU detection is not possible! Msg: "+e);}
-
- }
+
+ }
+ function setUseMandateFlag(e) {
+ /*document.getElementById("mandateCheckBox").setAttribute("aria-checked", document.getElementById("mandateCheckBox").checked);*/
+ e.setAttribute("aria-checked", e.checked);
+ }
+
+ document.addEventListener('resize', onChangeChecks);
+ document.addEventListener('DOMContentLoaded', function () {
+ document.querySelector('#mandateCheckBox').addEventListener('click', setUseMandateFlag);
+ document.querySelector('#moaidform>input[type=submit]').addEventListener('click', setMandateSelection);
+ document.querySelector('#bkuhandy>input[type=button]').addEventListener('click', bkuHandyClicked);
+ document.querySelector('#stork button[type=button]').addEventListener('click', storkClicked);
+ onChangeChecks();
+ });
/* function setSSOSelection() {
document.getElementById("useSSO").value = "false";