Skip to content

Commit

Permalink
In analysis controller, allow opening tabs in the background.
Browse files Browse the repository at this point in the history
This is useful when the jury wants to look at all problem stats after
import, and it was unnecessarily prevented by our use of JS to make the
whole row clickable.
  • Loading branch information
meisterT committed Nov 24, 2023
1 parent 7fc93e6 commit 605e1c6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions webapp/templates/jury/analysis/contest_overview.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@
</style>
<script>
$(function() {
$(".clickable-row").click(function() {
window.location = $(this).data("href");
$(".clickable-row").click(function(e) {
if (e.ctrlKey) {
window.open($(this).data("href"), '_blank');
} else {
window.location = $(this).data("href");
}
});
$('[data-bs-toggle="popover"]').popover({
trigger: 'hover',
Expand Down

0 comments on commit 605e1c6

Please sign in to comment.