aboutsummaryrefslogtreecommitdiff
path: root/id/ConfigWebTool/src/main/webapp/js
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-07-07 14:27:08 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-07-07 14:27:08 +0200
commit85d5d9885979ca298f3d83699a07f7c5c234bec7 (patch)
treed273ccd77d098bde8f698fec0e78c0470e21e05c /id/ConfigWebTool/src/main/webapp/js
parentb6b155c4d55a31a13d189f50831fb7fa8c504b90 (diff)
parentf595cb0d46358e44fad838dd01a449e40c52e18b (diff)
downloadmoa-id-spss-85d5d9885979ca298f3d83699a07f7c5c234bec7.tar.gz
moa-id-spss-85d5d9885979ca298f3d83699a07f7c5c234bec7.tar.bz2
moa-id-spss-85d5d9885979ca298f3d83699a07f7c5c234bec7.zip
Merge remote-tracking branch 'remotes/origin/persistance-fixes' into moa-2.1-Snapshot
Diffstat (limited to 'id/ConfigWebTool/src/main/webapp/js')
-rw-r--r--id/ConfigWebTool/src/main/webapp/js/common.js3
1 files changed, 3 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..f7ef2c415 100644
--- a/id/ConfigWebTool/src/main/webapp/js/common.js
+++ b/id/ConfigWebTool/src/main/webapp/js/common.js
@@ -230,6 +230,9 @@ function newPeps() {
var lastindex = 1;
}
var nextindex = lastindex + 1;
+
+ clone.innerHTML = clone.innerHTML.replace(/[A-Z]{2}</, '<');
+ clone.innerHTML = clone.innerHTML.replace(/<input.*type="hidden".*>/, '<div id="wwgrp_loadGeneralConfig_storkconfig_cpepslist_0__countryCode" class="wwgrp"> <div id="wwctrl_loadGeneralConfig_storkconfig_cpepslist_0__countryCode" class="wwctrl"> <input id="loadGeneralConfig_storkconfig_cpepslist_0__countryCode" class="textfield_short" type="text" value="IT" name="storkconfig.cpepslist[0].countryCode"> </div> </div>');
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);