diff options
author | sebdet <sebastien.determe@intl.att.com> | 2018-10-08 14:06:09 +0200 |
---|---|---|
committer | sebdet <sebastien.determe@intl.att.com> | 2018-10-08 14:06:09 +0200 |
commit | e3489d939cd18a4cfa2394ab64ffdb972ddd6a86 (patch) | |
tree | 4e9c1a3aeb6cca7c1775d91d867b40a3bbd2c659 /src/main/resources/META-INF | |
parent | bc273aca8a87a836f17c1f461492cc0f02a0ae16 (diff) |
Fix target resourceId
Fix target resource id impacted by the code change done for Guard ui bug
fix
Issue-ID: CLAMP-227
Change-Id: I73751074b7414892ed4de30f894f09be3b72eb17
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'src/main/resources/META-INF')
-rw-r--r-- | src/main/resources/META-INF/resources/designer/partials/portfolios/PolicyWindow_properties.html | 16 |
1 files changed, 10 insertions, 6 deletions
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 7f63a406f..5a4600304 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 @@ -361,8 +361,12 @@ label { </div> <script> + function getAllFormId() { + return Array.from(document.getElementsByClassName("formId")); + } + function searchActiveFormId() { - var formArray = Array.from(document.getElementsByClassName("formId")); + var formArray = getAllFormId(); for (var i=0, max=formArray.length; i < max; i++) { console.log("Search active FormId, current element "+formArray[i].id); @@ -373,13 +377,13 @@ label { } console.log("No active formId found !"); } - + function initTargetResourceId() { - var formItemActive = searchActiveFormId(); // Set all the Resource Invariant UUID in the target resource ID list (+Empty and other) - Object.keys(vf_Services["shared"]["byVf"]).forEach(function(key){ - $("#"+formItemActive.id+" #targetResourceId").append($('<option></option>').val(key).html(key)); + Object.keys(vf_Services["shared"]["byVf"]).forEach(function(key) { + $("#targetResourceId").append($('<option></option>').val(key).html(key)); }); + } function changeTargetResourceIdOther() { @@ -914,7 +918,7 @@ label { initTargetResourceId(); //load metrics dropdown - if (elementMap["global"]){ + if (elementMap["global"]) { for (var i = 0; i < (elementMap["global"].length); i++){ if ((elementMap["global"][i]["name"]) == "actionSet"){ var asSel = elementMap["global"][i]["value"]; |