From 6f218aa5d61086bea5749c2a26cda9aaf93a2c5f Mon Sep 17 00:00:00 2001 From: Daniel Beck Date: Tue, 8 Aug 2023 13:12:40 +0200 Subject: [PATCH] All of this shit is undocumented Need to find https://github.com/jenkinsci/jenkins/pull/6863#issuecomment-1252978467 every fucking time --- .../resources/lib/hudson/project/configurable/adjunct.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/resources/lib/hudson/project/configurable/adjunct.js b/core/src/main/resources/lib/hudson/project/configurable/adjunct.js index 9ae96e340acc4..45a62010d98a5 100644 --- a/core/src/main/resources/lib/hudson/project/configurable/adjunct.js +++ b/core/src/main/resources/lib/hudson/project/configurable/adjunct.js @@ -1,12 +1,12 @@ window["lib_hudson_project_configurable_build_now_callback"] = function ( el, - ev + ev, ) { let parameterized = el.dataset.parameterized; let success = el.dataset.success; if (parameterized === "false") { - fetch(a.href, { - method: 'post', + fetch(el.href, { + method: "post", headers: crumb.wrap({}), }); hoverNotification(success, ev.target.parentNode);