Fix for the issue of input param showing the complete key path to the user
authorSeshu-Kumar-M <seshu.kumar.m@huawei.com>
Mon, 31 Oct 2016 07:58:47 +0000 (15:58 +0800)
committerSeshu-Kumar-M <seshu.kumar.m@huawei.com>
Mon, 31 Oct 2016 07:58:47 +0000 (15:58 +0800)
GSO-77

Change-Id: I704a47f8f0d7e20d672cf469a4dd939b310e06bf
Signed-off-by: Seshu-Kumar-M <seshu.kumar.m@huawei.com>
openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/InputData.html

index 917cff1..d76182c 100644 (file)
                 if (jsonData != null) {\r
                     $("body").empty();\r
                     for(var key in jsonData.inputParameters){\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;">'+ key + ':</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="'+ jsonData.inputParameters[key] + '" value="'+ jsonData.inputParameters[key] + '" readonly disabled/></div></div>');\r
+                                               var name = key;\r
+                                               if(name.includes('.'))\r
+                                               {\r
+                                                       name = key.substring(key.lastInexOf('.')+1,key.length);\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="'+ jsonData.inputParameters[key] + '" value="'+ jsonData.inputParameters[key] + '" readonly disabled/></div></div>');\r
                     }\r
                 }\r
 \r