aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-02-20 15:48:58 +0100
committerFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-02-24 12:19:36 +0100
commit2aeec6f82e0e44888d37167cc917d03a076bdbf7 (patch)
tree7d5b1ececf7b5dfd0b22e9c27ef9f89786273b7a
parentea9d46e1fb39ad31d9bfe6226442b71b8bb11539 (diff)
downloadmoa-id-spss-2aeec6f82e0e44888d37167cc917d03a076bdbf7.tar.gz
moa-id-spss-2aeec6f82e0e44888d37167cc917d03a076bdbf7.tar.bz2
moa-id-spss-2aeec6f82e0e44888d37167cc917d03a076bdbf7.zip
add new ap configuration entry
-rw-r--r--id/ConfigWebTool/src/main/webapp/js/common.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/id/ConfigWebTool/src/main/webapp/js/common.js b/id/ConfigWebTool/src/main/webapp/js/common.js
index d9089243f..45f40f5b8 100644
--- a/id/ConfigWebTool/src/main/webapp/js/common.js
+++ b/id/ConfigWebTool/src/main/webapp/js/common.js
@@ -235,4 +235,13 @@ function newStorkAttribute() {
clone.innerHTML = clone.innerHTML.replace(/name="storkconfig.attributes\[\d/g, 'name="storkconfig.attributes[' + nextindex);
clone.innerHTML = clone.innerHTML.replace(/(.*" value=").*?(".*)/g, '$1$2');
target.parentNode.appendChild(clone);
+}
+function newAp() {
+ var target = $(document.getElementById("stork_aplist").getElementsByTagName("tr")).last()[0];
+ var clone = target.cloneNode(true);
+ var lastindex = parseInt(clone.innerHTML.match(/name="storkOA.attributeProviderPlugins\[(\d)/)[1]);
+ var nextindex = lastindex + 1;
+ 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