From 16aad96ae6c0763a50c95494472ef8d4858138d8 Mon Sep 17 00:00:00 2001 From: shlomomdahan <64103471+shlomomdahan@users.noreply.github.com> Date: Wed, 23 Oct 2024 15:52:27 -0400 Subject: [PATCH 01/23] fix: Update jQuery filter removal syntax for 3.x compatibility --- src/main/webapp/js/jquery.fancybox-1.3.4.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/js/jquery.fancybox-1.3.4.js b/src/main/webapp/js/jquery.fancybox-1.3.4.js index 55c08ddb..b1667fcd 100644 --- a/src/main/webapp/js/jquery.fancybox-1.3.4.js +++ b/src/main/webapp/js/jquery.fancybox-1.3.4.js @@ -577,8 +577,8 @@ _finish = function () { if (!$.support.opacity) { - content.get(0).style.removeAttribute('filter'); - wrap.get(0).style.removeAttribute('filter'); + content.css('filter', ''); + wrap.css('filter', ''); } if (selectedOpts.autoDimensions) { From d74f1295bcc8df18bdbb57f85e6fba84f8738196 Mon Sep 17 00:00:00 2001 From: shlomomdahan <64103471+shlomomdahan@users.noreply.github.com> Date: Wed, 23 Oct 2024 16:23:26 -0400 Subject: [PATCH 02/23] address first csp issue: https://github.com/jenkinsci/build-pipeline-plugin/blob/master/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/buildCardTemplate.jelly\#L64 --- .../plugin/buildpipeline/BuildPipelineView/bpp.jelly | 1 + .../BuildCardExtension/build-card-template-onclicks.js | 10 ++++++++++ .../BuildCardExtension/buildCardTemplate.jelly | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/build-card-template-onclicks.js diff --git a/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView/bpp.jelly b/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView/bpp.jelly index f349bfc8..546e01fb 100644 --- a/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView/bpp.jelly +++ b/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView/bpp.jelly @@ -12,6 +12,7 @@ + diff --git a/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/build-card-template-onclicks.js b/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/build-card-template-onclicks.js new file mode 100644 index 00000000..53c8672b --- /dev/null +++ b/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/build-card-template-onclicks.js @@ -0,0 +1,10 @@ +Behaviour.specify(".progress-console-onclick", 'progress-bar-click', 0, function (progressBarElement) { + + const dataContainer = document.querySelector(".fill-dialog-data-container"); + const href = dataContainer.dataset.fillDialogHref; + const title = dataContainer.dataset.fillDialogTitle; + + progressBarElement.addEventListener('click', () => { + buildPipeline.fillDialog(href, title); + }); +}); \ No newline at end of file diff --git a/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/buildCardTemplate.jelly b/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/buildCardTemplate.jelly index 9ccb95a2..1ac7e88b 100644 --- a/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/buildCardTemplate.jelly +++ b/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/BuildCardExtension/buildCardTemplate.jelly @@ -61,7 +61,8 @@ {{#unless project.disabled}}
{{#if build.isBuilding}} -
+