From 159723f8b2165530c3a1a4eae99550998f3f8c4a Mon Sep 17 00:00:00 2001 From: Paul Marillonnet Date: Wed, 8 Dec 2021 18:43:57 +0100 Subject: [PATCH] always try to show jenkins CI results regardless of issue history (#59482) --- javascripts/theme.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/javascripts/theme.js b/javascripts/theme.js index 6a2c3e5..fa04d36 100644 --- a/javascripts/theme.js +++ b/javascripts/theme.js @@ -298,6 +298,15 @@ function alter_issue_show_page() { } $(function() { + // create #history if it does not exist, in order to show jenkins CI results + var historyExists = document.getElementById("history"); + if (!historyExists) { + var history = document.createElement("div"); + var content = document.getElementById("content"); + history.id = 'history'; + content.appendChild(history); + } + $('.wiki table tr:first-child td').on('click', sort_table).css('cursor', 'row-resize'); /* 440 is header image height (500px) - header height (60px) */