Fix details panel selector for Horizon auto refresh

This change fixes the selector to support auto-refresh
feature in details panel of Deploy Orchestration Tab.

TEST PLAN:
[PASS] Build, install
[PASS] Check if Admin/Platform/SoftwareManagement/DeployOrchestration/
CreateStrategy -> Details section is updating automatically

Closes-bug: 2103520

Change-Id: I50425ef5c6de19b2b887362c35b3f20db894e4cb
Signed-off-by: idoregol <Italo.doRegoLemos@windriver.com>
This commit is contained in:
idoregol 2025-03-18 09:52:29 -03:00 committed by Italo Lemos
parent df9410eb00
commit 46e6d7d6a8

View File

@ -390,8 +390,8 @@ index 000000000..7976c0d14
+/* Functionality related to detail panes */
+horizon.details = {
+ refresh: function(html) {
+ var $new_details = $(html).find('.detail > dl').parent();
+ var $old_details = $('.detail > dl').parent();
+ var $new_details = $(html).find('.detail dl').parent();
+ var $old_details = $('.detail dl').parent();
+ var $new_title = $(html).find('.detail > dl > .word-wrap:first').text();
+ var $old_title = $('.detail-header > div > div > span');
+
@ -414,7 +414,7 @@ index 000000000..7976c0d14
+};
+
+horizon.addInitFunction(function() {
+ if ($('.detail > dl').length > 0) {
+ if ($('.detail dl').length > 0) {
+ // Register callback handler to update the detail panels on page refresh
+ horizon.refresh.addRefreshFunction(horizon.details.refresh);
+ }