Skip rejudge confirm dialog via the Command key on MacOS

This commit is contained in:
Tudor Brindus 2023-12-25 17:01:10 -05:00 committed by Tudor Brindus
parent 356b146f37
commit 8accffd156

View File

@ -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') }}',