From ae5dce00beb6cdd61f28b566479d6111b3f8ada2 Mon Sep 17 00:00:00 2001 From: "Determe, Sebastien (sd378r)" Date: Mon, 6 Aug 2018 15:26:47 +0200 Subject: 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) --- .../portfolios/PolicyWindow_properties.html | 24 +- .../partials/portfolios/global_properties.html | 460 +++++++++------------ 2 files changed, 201 insertions(+), 283 deletions(-) (limited to 'src/main/resources/META-INF') 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 7f4dafdbb..3a894c286 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 babdeb6f7..00a56246f 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

- +