summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Shen <shentao@chinamobile.com>2017-04-20 09:26:15 +0000
committerGerrit Code Review <gerrit@open-o.org>2017-04-20 09:26:15 +0000
commit956207e75c89465b4c64fdb840be7c348c2806ba (patch)
treefa2c2371023b4762f97f82394146c0eb5b0fb0c6
parent5485b05e78b1d37d64cfd8e0052ab5b59647c2c3 (diff)
parent2d63ba7e668c2c976c1c2d60f2fa28f2f4881267 (diff)
Merge "Replace invalid id by valid id"
-rw-r--r--lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js b/lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js
index f2ff5483..85c7058b 100644
--- a/lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js
+++ b/lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js
@@ -364,7 +364,9 @@ function collectParamValue(identify, param) {
* @returns
*/
function getParamId(identify, param) {
- return '' ===identify ? param.name : identify + '_' + param.name;
+ var tmpname = param.name.replace(/-/g, '_');
+ var tmpname1 = tmpname.replace(/./g, '_');
+ return '' ===identify ? tmpname1 : identify + '_' + tmpname1;
}
/**