From: Determe, Sebastien (sd378r) Date: Mon, 6 Aug 2018 13:26:47 +0000 (+0200) Subject: Remove commented lines X-Git-Tag: 3.0.0~37 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=ae5dce00beb6cdd61f28b566479d6111b3f8ada2;hp=f744247f2b725152d4959eb6fe4cb59d9d7223d7;p=clamp.git Remove commented lines Rework the javascript code and commented lines removed + re-indenting Issue-ID: CLAMP-191 Change-Id: Idc188276ebc12a0af5458acc634d53a80dabc2de Signed-off-by: Determe, Sebastien (sd378r) --- diff --git a/src/main/resources/META-INF/resources/designer/partials/portfolios/PolicyWindow_properties.html b/src/main/resources/META-INF/resources/designer/partials/portfolios/PolicyWindow_properties.html index 7f4dafdb..3a894c28 100644 --- a/src/main/resources/META-INF/resources/designer/partials/portfolios/PolicyWindow_properties.html +++ b/src/main/resources/META-INF/resources/designer/partials/portfolios/PolicyWindow_properties.html @@ -554,7 +554,7 @@ label { $("#formId" + count).append(form); $(".formId").not($("#formId" + count)).css("display", "none") addCustListen(count) - //addTabListen(count) + addSelectListen(count); // This is for when the process is not loading from map but being created if(!loadingId){ @@ -602,27 +602,7 @@ label { $("#add_one_more").click(); } - - - //listener will change the tab name to the recipe - function addTabListen(count){ - - // disable parentPolicyConditions when a parentPolicy is not selected - //don't think this is used.. - /* $("#formId"+count+" #parentPolicy").on("change",function(){ - if($("#formId"+count+" #parentPolicy").val().toString()==""){ - // deselect all options - $("#formId"+count+" #parentPolicyConditions option:selected").prop("selected", false); - // disable the select box - $("#formId"+count+" #parentPolicyConditions").multiselect("disable"); - - } else { - $("#formId"+count+" #parentPolicyConditions").multiselect("enable"); - - } - }); */ - } - + function addCustListen(count) { $('#go_properties_tab' + count).click(function(event) { $("#nav_Tabs li").removeClass("active"); diff --git a/src/main/resources/META-INF/resources/designer/partials/portfolios/global_properties.html b/src/main/resources/META-INF/resources/designer/partials/portfolios/global_properties.html index babdeb6f..00a56246 100644 --- a/src/main/resources/META-INF/resources/designer/partials/portfolios/global_properties.html +++ b/src/main/resources/META-INF/resources/designer/partials/portfolios/global_properties.html @@ -51,26 +51,22 @@ text-align: center; margin-top: 17px; } - #paramsWarn { - display: none; + +#paramsWarn { + display: none; } - + @@ -80,69 +76,74 @@ aria-hidden="true" style="margin-top: -3px">×

Model Properties

- +