aboutsummaryrefslogtreecommitdiff
path: root/id/ConfigWebTool/src/main/webapp/js
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2016-01-18 16:30:24 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2016-01-18 16:30:24 +0100
commit3c0bc144d33712d2392e37a553b7192ef4572735 (patch)
tree8f26ea69daad673bbf0919708379b35ae2fe8bb6 /id/ConfigWebTool/src/main/webapp/js
parent2c6df2af8c5751d1ba68df589f4c0d228c401742 (diff)
downloadmoa-id-spss-3c0bc144d33712d2392e37a553b7192ef4572735.tar.gz
moa-id-spss-3c0bc144d33712d2392e37a553b7192ef4572735.tar.bz2
moa-id-spss-3c0bc144d33712d2392e37a553b7192ef4572735.zip
add virtual IDP configuration functionality to moa-id-configuration webGUI
Diffstat (limited to 'id/ConfigWebTool/src/main/webapp/js')
-rw-r--r--id/ConfigWebTool/src/main/webapp/js/common.js23
1 files changed, 22 insertions, 1 deletions
diff --git a/id/ConfigWebTool/src/main/webapp/js/common.js b/id/ConfigWebTool/src/main/webapp/js/common.js
index fb71854c2..dfc3cc78f 100644
--- a/id/ConfigWebTool/src/main/webapp/js/common.js
+++ b/id/ConfigWebTool/src/main/webapp/js/common.js
@@ -272,4 +272,25 @@ function newAp() {
clone.innerHTML = clone.innerHTML.replace(/name="storkOA.attributeProviderPlugins\[\d/g, 'name="storkOA.attributeProviderPlugins[' + nextindex);
clone.innerHTML = clone.innerHTML.replace(/(.*" value=").*?(".*)/g, '$1$2');
target.parentNode.appendChild(clone);
-} \ No newline at end of file
+}
+
+function setPublicURLPrefixTestBox(checkbox) {
+ if (checkbox.checked) {
+ var textarea = $("#loadGeneralConfig_moaconfig_publicURLPrefix");
+ textarea.attr("rows", 6);
+ textarea.height(120);
+
+ } else {
+ var textarea = $("#loadGeneralConfig_moaconfig_publicURLPrefix");
+ textarea.attr("rows", 1);
+ textarea.height(25);
+
+ }
+ return true;
+}
+
+function generalConfigLoadEvent() {
+ var value = $("#loadGeneralConfig_moaconfig_publicURLPrefix").val();
+ $("#loadGeneralConfig_moaconfig_publicURLPrefix").val(value.replace(",",",\n"));
+ return true;
+}