From a2386a841fb20ee8e7f2649bafce8347dca87b4a Mon Sep 17 00:00:00 2001 From: Markus Winter Date: Fri, 16 Aug 2024 00:56:32 +0200 Subject: [PATCH] [JENKINS-73613] refresh buildhistory in all cases refresh the buildHistory widget instantly when the window gets focus, e.g. after switching browser tabs but also when one was in another application and clicks in the browser window. When the window is visible it will update even when it has no focus, when the window is hidden no calls to the controller will be done. Additionally the buildHistory will be updated when it is not on the first page. So e.g. when someone deletes a build, changes the display name or the description or when a build is still running the page gets updated. --- .../hudson/widgets/HistoryWidget/index.jelly | 2 +- war/src/main/js/pages/project/builds-card.js | 32 ++++++++++++------- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/core/src/main/resources/hudson/widgets/HistoryWidget/index.jelly b/core/src/main/resources/hudson/widgets/HistoryWidget/index.jelly index 8d4663bb00dd..6b158ddc4ea6 100644 --- a/core/src/main/resources/hudson/widgets/HistoryWidget/index.jelly +++ b/core/src/main/resources/hudson/widgets/HistoryWidget/index.jelly @@ -56,7 +56,7 @@ THE SOFTWARE.
-
+