aboutsummaryrefslogtreecommitdiff
path: root/id/ConfigWebTool/src/main/webapp/js/common.js
diff options
context:
space:
mode:
authorFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-07-04 14:44:26 +0200
committerFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-07-04 15:45:08 +0200
commit27c5460e2138fbb7de64214a7538b98effb5a7a6 (patch)
treed4e1700e3961fb9d75392bdbe4e2aded95a8f8a7 /id/ConfigWebTool/src/main/webapp/js/common.js
parent35993eab38db2aa67137d674baa31031266c2b2e (diff)
downloadmoa-id-spss-27c5460e2138fbb7de64214a7538b98effb5a7a6.tar.gz
moa-id-spss-27c5460e2138fbb7de64214a7538b98effb5a7a6.tar.bz2
moa-id-spss-27c5460e2138fbb7de64214a7538b98effb5a7a6.zip
fix: CPEPS list is now edited in place instead of clean and refill
Diffstat (limited to 'id/ConfigWebTool/src/main/webapp/js/common.js')
-rw-r--r--id/ConfigWebTool/src/main/webapp/js/common.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/id/ConfigWebTool/src/main/webapp/js/common.js b/id/ConfigWebTool/src/main/webapp/js/common.js
index 32e79bb66..a86b9fede 100644
--- a/id/ConfigWebTool/src/main/webapp/js/common.js
+++ b/id/ConfigWebTool/src/main/webapp/js/common.js
@@ -230,6 +230,7 @@ function newPeps() {
var lastindex = 1;
}
var nextindex = lastindex + 1;
+ clone.innerHTML = clone.innerHTML.replace(/<input.*type="hidden".*>/, '');
clone.innerHTML = clone.innerHTML.replace(/name="storkconfig.cpepslist\[\d/g, 'name="storkconfig.cpepslist[' + nextindex);
clone.innerHTML = clone.innerHTML.replace(/(.*" value=").*?(".*)/g, '$1$2');
target.parentNode.appendChild(clone);