diff options
Diffstat (limited to 'web/getstats/stats2.js')
| -rw-r--r-- | web/getstats/stats2.js | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/web/getstats/stats2.js b/web/getstats/stats2.js index ecb64de..651dd29 100644 --- a/web/getstats/stats2.js +++ b/web/getstats/stats2.js @@ -123,15 +123,10 @@ function plot_selectResult(index) { plot.triggerRedrawOverlay(); } -// Handles clicking a benchmark checkbox. At most one benchmark may -// be selected at any time. -function table_clickBenchmarkCheckbox(cb) { +// Handles clicking a benchmark radio button. +function table_clickBMRadioButton(cb) { if (cb.checked) { - // Deselect all other benchmarks: - $("#pbmTable input").attr("checked", false); - cb.checked = true; - index = cb.id.match(/bm_cb:(\d+)/)[1]; - + var index = cb.id.match(/bm_cb:(\d+)/)[1]; plot_selectResult(index); // synchronize plot } else { plot_clearSelection(); // synchronize plot @@ -919,9 +914,9 @@ function fetchStats(testCaseFilter) { lowerIsBetter[metric] = lib; firstColHtml = "<input id=\"bm_cb:" + index + - "\" type=\"checkbox\" " + - "onclick=\"" + - "table_clickBenchmarkCheckbox(this)\">"; + "\" name=\"currSelector\" " + + "type=\"radio\" onclick=\"" + + "table_clickBMRadioButton(this)\">"; } else { firstColHtml = "<span style=\"color:red\">n/a</span>"; |
