From 6bffb09f5ff9f69975f4a18fd793b7bc745264d5 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Thu, 20 Jul 2023 16:35:24 -0700 Subject: [PATCH] Remove usages of Prototype --- .../plugins/workflow/support/steps/input/POSTHyperlinkNote.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/POSTHyperlinkNote.java b/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/POSTHyperlinkNote.java index 109a9410..af514f05 100644 --- a/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/POSTHyperlinkNote.java +++ b/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/POSTHyperlinkNote.java @@ -84,7 +84,7 @@ public POSTHyperlinkNote(String url, int length) { @Override protected String extraAttributes() { // TODO perhaps add hoverNotification - return " onclick=\"new Ajax.Request(decodeURIComponent(atob('" + encodeForJavascript(url) + "'))); return false\""; + return " onclick=\"fetch(decodeURIComponent(atob('" + encodeForJavascript(url) + "')), { method: 'post', headers: crumb.wrap({})}); return false\""; } /**