diff --git a/src/main/resources/hudson/plugins/plot/PlotReport/index.jelly b/src/main/resources/hudson/plugins/plot/PlotReport/index.jelly index afbe59c..45a8752 100644 --- a/src/main/resources/hudson/plugins/plot/PlotReport/index.jelly +++ b/src/main/resources/hudson/plugins/plot/PlotReport/index.jelly @@ -70,12 +70,8 @@

${it.group}

- - ${%Jump to} diff --git a/src/main/resources/hudson/plugins/plot/PlotReport/jump-to-plot.js b/src/main/resources/hudson/plugins/plot/PlotReport/jump-to-plot.js new file mode 100644 index 0000000..25f13b1 --- /dev/null +++ b/src/main/resources/hudson/plugins/plot/PlotReport/jump-to-plot.js @@ -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; + }); +});