aboutsummaryrefslogtreecommitdiff
path: root/id/ConfigWebTool/src/main/webapp/js
diff options
context:
space:
mode:
authorFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-01-07 15:12:46 +0100
committerFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-01-27 16:34:14 +0100
commitc26721de9136104520fd0ce9e8aba91b480a4bb9 (patch)
treeb9d9363cff55080e943f18f3571746098c05339e /id/ConfigWebTool/src/main/webapp/js
parent3da3836bcd77a23ca00df2bdb088e63b47cc6499 (diff)
downloadmoa-id-spss-c26721de9136104520fd0ce9e8aba91b480a4bb9.tar.gz
moa-id-spss-c26721de9136104520fd0ce9e8aba91b480a4bb9.tar.bz2
moa-id-spss-c26721de9136104520fd0ce9e8aba91b480a4bb9.zip
new attribute button
Diffstat (limited to 'id/ConfigWebTool/src/main/webapp/js')
-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 b07b31205..774bffd8d 100644
--- a/id/ConfigWebTool/src/main/webapp/js/common.js
+++ b/id/ConfigWebTool/src/main/webapp/js/common.js
@@ -194,3 +194,12 @@ function newPeps() {
clone.innerHTML = clone.innerHTML.replace(/(.*" value=").*?(".*)/g, '$1$2');
target.parentNode.appendChild(clone);
}
+function newStorkAttribute() {
+ var target = $(document.getElementById("stork_attributelist").getElementsByTagName("tr")).last()[0];
+ var clone = target.cloneNode(true);
+ var lastindex = parseInt(clone.innerHTML.match(/name="storkconfig.attributes\[(\d)/)[1]);
+ var nextindex = lastindex + 1;
+ 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);
+} \ No newline at end of file