Issue-Id: GSO-88 Fix parameter display error
authorLuji7 <lu.ji3@zte.com.cn>
Thu, 3 Nov 2016 06:39:11 +0000 (14:39 +0800)
committerLuji7 <lu.ji3@zte.com.cn>
Thu, 3 Nov 2016 06:39:11 +0000 (14:39 +0800)
Change-Id: I2b57814a575de2a51a9004c36fe551fb404ac1c5
Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/InputData.html
openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js

index d33975f..5d75323 100644 (file)
@@ -59,7 +59,7 @@
                                                        }\r
                                                }       \r
                         else{\r
-                             var nameObj = {i18nKey:key,showName:key};\r
+                             var nameObj = {name:key,showName:key};\r
                              name = showName(nameObj);\r
                         }                                                     \r
                         $("body").append('<div class="mT15 form-group row" style="margin-top:35px;margin-left:25%"><div class="col-sm-6" align="right"><label class="control-label"><span style="font-size:16px;">'+ name + ':</span></label></div><div class="col-sm-6"><input  type="text" name="" maxlength="256" style="margin-left:10px;width:250px;" data-toggle="tooltip" data-placement="top" title="'+ paramValue + '" value="'+ paramValue + '" readonly disabled/></div></div>');\r
index c78d3c2..ee9ae62 100644 (file)
@@ -483,7 +483,7 @@ function generateComponent(inputPara) {
 }
 
 function showName(inputPara) {
-    var name = $.i18n.prop(inputPara.i18nKey)
+    var name = $.i18n.prop(inputPara.name)
     if(name.length === 0 || name.slice(0, 1) === '[') {
         name = inputPara.showName;
     }