-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-74098] Remove inline JS script and legacy onClick handler (#147
) * remove inline JS script and legacy onClick handler * remove inline JS script and legacy onClick handler * remove inline JS script and legacy onClick handler --------- Co-authored-by: Mark Waite <[email protected]>
- Loading branch information
1 parent
efbb7f5
commit 3e73a37
Showing
2 changed files
with
8 additions
and
6 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
6 changes: 6 additions & 0 deletions
6
src/main/resources/hudson/plugins/plot/PlotReport/jump-to-plot.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,6 @@ | ||
document.addEventListener('DOMContentLoaded', function() { | ||
const plotSelector = document.querySelector('.plot-selector'); | ||
plotSelector.addEventListener('change', function(e) { | ||
window.location.hash = e.target.value; | ||
}); | ||
}); |