-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-60866] Clean up build button column JS (#5514)
Co-authored-by: Daniel Beck <[email protected]>
- Loading branch information
1 parent
094c790
commit 88f4f5e
Showing
4 changed files
with
32 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
core/src/main/resources/hudson/views/BuildButtonColumn/icon.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Behaviour.specify(".build-button-column-icon-reference-holder", 'build-button-column', 0, function (e) { | ||
var url = e.getAttribute('data-url'); | ||
var message = e.getAttribute('data-notification') | ||
var id = e.getAttribute('data-id'); | ||
var icon = document.getElementById(id); | ||
|
||
icon.onclick = function(el) { | ||
new Ajax.Request(url); | ||
hoverNotification(message, this, -100); | ||
return false; | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters