Skip to content

Commit

Permalink
Skip rejudge confirm dialog via the Command key on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyene committed Dec 25, 2023
1 parent 356b146 commit 8accffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/submission/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{% if request.user.is_authenticated and perms.judge.rejudge_submission %}
<script type="text/javascript">
window.rejudge_submission = function (id, e) {
if ((typeof e !== 'undefined' && e.ctrlKey) ||
if ((typeof e !== 'undefined' && (e.ctrlKey || e.metaKey)) ||
confirm('{{ _('Are you sure you want to rejudge?') }}')) {
$.ajax({
url: '{{ url('submission_rejudge') }}',
Expand Down

0 comments on commit 8accffd

Please sign in to comment.