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 16:09:36 +0200
committerFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-07-04 16:09:36 +0200
commitb2c1ca665aaaa3246671ef2ec933e29b8ff87b25 (patch)
tree5e91b6fbaa3378514acf2b9ff4686103993bdf62 /id/ConfigWebTool/src/main/webapp/js/common.js
parent27c5460e2138fbb7de64214a7538b98effb5a7a6 (diff)
downloadmoa-id-spss-b2c1ca665aaaa3246671ef2ec933e29b8ff87b25.tar.gz
moa-id-spss-b2c1ca665aaaa3246671ef2ec933e29b8ff87b25.tar.bz2
moa-id-spss-b2c1ca665aaaa3246671ef2ec933e29b8ff87b25.zip
made country code readonly
Diffstat (limited to 'id/ConfigWebTool/src/main/webapp/js/common.js')
-rw-r--r--id/ConfigWebTool/src/main/webapp/js/common.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/id/ConfigWebTool/src/main/webapp/js/common.js b/id/ConfigWebTool/src/main/webapp/js/common.js
index a86b9fede..f7ef2c415 100644
--- a/id/ConfigWebTool/src/main/webapp/js/common.js
+++ b/id/ConfigWebTool/src/main/webapp/js/common.js
@@ -230,7 +230,9 @@ function newPeps() {
var lastindex = 1;
}
var nextindex = lastindex + 1;
- clone.innerHTML = clone.innerHTML.replace(/<input.*type="hidden".*>/, '');
+
+ 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);