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 9ae96e340acc..45a62010d98a 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);