Changes for the new portal LCM pages.
authorLuji7 <lu.ji3@zte.com.cn>
Thu, 29 Sep 2016 10:46:30 +0000 (18:46 +0800)
committerLuji7 <lu.ji3@zte.com.cn>
Thu, 29 Sep 2016 10:46:30 +0000 (18:46 +0800)
Change-Id: Ied4aa6034fd08485c04de8011e3ac52d9cdd9148
Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/gsolcmmain.html

index b373f3a..b464245 100644 (file)
 \r
         function hideBasic() {\r
             $("#basicInfoTab").hide();\r
+            initParameterTab();\r
+            $("#templateParameterTab").show();\r
         }\r
 \r
         function showBasic() {\r
             $("#basicInfoTab").show();\r
+            $("#templateParameterTab").hide();\r
+        }\r
+\r
+        function serviceTemplateChanged() {\r
+            templateParameters.changed = true;\r
         }\r
 \r
         function showTopoCont() {\r
                                     </label>\r
                                     <div class="col-sm-7">\r
                                         <select class="form-control" style="padding-top: 0px;padding-bottom: 0px;"\r
-                                                id="svcTempl" name="svcTempl">\r
+                                                id="svcTempl" name="svcTempl" onchange="serviceTemplateChanged();">\r
                                             <option value="select">--select--</option>\r
                                             <option value="1.1">1.1</option>\r
                                             <option value="1.2">1.2</option>\r
                                 </div>\r
                             </div>\r
 \r
+                            <div id="templateParameterTab">\r
+\r
+                            </div>\r
+\r
                         </div>\r
                         <div class="modal-footer">\r
                             <button type="button" style="width:80px;" class="btn SDBtn" data-dismiss="modal"\r