From 83541cfb0e5116ee93bd9d778e1464e78389f58f Mon Sep 17 00:00:00 2001 From: Markus Winter Date: Sat, 24 Aug 2024 11:58:09 +0200 Subject: [PATCH] [JENKINS-73613] refresh buildhistory widget in all cases (#9624) * [JENKINS-73592] refresh buildhistory widget when page gets focus * [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 | 30 +++++++++++++------ 2 files changed, 22 insertions(+), 10 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.
-
+