From 46e6d7d6a88b9eddb345c939bfab44f259c9bbaa Mon Sep 17 00:00:00 2001 From: idoregol Date: Tue, 18 Mar 2025 09:52:29 -0300 Subject: [PATCH] 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 --- .../python-horizon/debian/patches/0005-Auto-refresh.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openstack/python-horizon/debian/patches/0005-Auto-refresh.patch b/openstack/python-horizon/debian/patches/0005-Auto-refresh.patch index 3924a69a..72bcd3cf 100644 --- a/openstack/python-horizon/debian/patches/0005-Auto-refresh.patch +++ b/openstack/python-horizon/debian/patches/0005-Auto-refresh.patch @@ -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); + }