aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-10-21 12:05:31 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-10-21 12:05:31 +0200
commit481963320bb314cd5b3fd459abe93f448bd677e9 (patch)
tree2ca61923500aa0e164fe5a7e015ba4368e4877dd
parent1fb0a5ae9853d69153ee3b93a85d9085eb411f57 (diff)
downloadmoa-id-spss-481963320bb314cd5b3fd459abe93f448bd677e9.tar.gz
moa-id-spss-481963320bb314cd5b3fd459abe93f448bd677e9.tar.bz2
moa-id-spss-481963320bb314cd5b3fd459abe93f448bd677e9.zip
solve SameOriginPolicy problem in JavaScript code for responsive design
-rw-r--r--id/server/data/deploy/conf/moa-id/htmlTemplates/loginFormFull.html2
-rw-r--r--id/server/idserverlib/src/main/resources/resources/templates/loginFormFull.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/id/server/data/deploy/conf/moa-id/htmlTemplates/loginFormFull.html b/id/server/data/deploy/conf/moa-id/htmlTemplates/loginFormFull.html
index ef070b8eb..7e2ddc491 100644
--- a/id/server/data/deploy/conf/moa-id/htmlTemplates/loginFormFull.html
+++ b/id/server/data/deploy/conf/moa-id/htmlTemplates/loginFormFull.html
@@ -720,7 +720,7 @@
}
}
function onChangeChecks() {
- if (top.innerWidth < 650) {
+ if (self.innerWidth < 650) {
document.getElementById("moaidform").setAttribute("target","_parent");
} else {
document.getElementById("moaidform").removeAttribute("target");
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 ef070b8eb..7e2ddc491 100644
--- a/id/server/idserverlib/src/main/resources/resources/templates/loginFormFull.html
+++ b/id/server/idserverlib/src/main/resources/resources/templates/loginFormFull.html
@@ -720,7 +720,7 @@
}
}
function onChangeChecks() {
- if (top.innerWidth < 650) {
+ if (self.innerWidth < 650) {
document.getElementById("moaidform").setAttribute("target","_parent");
} else {
document.getElementById("moaidform").removeAttribute("target");