diff options
author | Tao Shen <shentao@chinamobile.com> | 2017-04-20 09:26:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@open-o.org> | 2017-04-20 09:26:15 +0000 |
commit | 956207e75c89465b4c64fdb840be7c348c2806ba (patch) | |
tree | fa2c2371023b4762f97f82394146c0eb5b0fb0c6 /lifecyclemgr/src | |
parent | 5485b05e78b1d37d64cfd8e0052ab5b59647c2c3 (diff) | |
parent | 2d63ba7e668c2c976c1c2d60f2fa28f2f4881267 (diff) |
Merge "Replace invalid id by valid id"
Diffstat (limited to 'lifecyclemgr/src')
-rw-r--r-- | lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js | 4 |
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;
}
/**
|