mirror of
https://github.com/DMOJ/online-judge.git
synced 2024-11-25 16:32:37 +08:00
Skip rejudge confirm dialog via the Command key on MacOS
This commit is contained in:
parent
356b146f37
commit
8accffd156
@ -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') }}',
|
||||
|
Loading…
Reference in New Issue
Block a user