Browse Source

Update legacy DOM names and URLs

master
Pisces000221 8 years ago
parent
commit
e15c9db218
  1. 2
      modules/problem.js
  2. 2
      views/problem.ejs
  3. 2
      views/submission_content.ejs

2
modules/problem.js

@ -228,7 +228,7 @@ app.post('/problem/:id/submit', async (req, res) => {
if (contest_id) {
res.redirect(syzoj.utils.makeUrl(['contest', contest_id]));
} else {
res.redirect(syzoj.utils.makeUrl(['submissions', judge_state.id]));
res.redirect(syzoj.utils.makeUrl(['submission', judge_state.id]));
}
} catch (e) {
syzoj.log(e);

2
views/problem.ejs

@ -106,7 +106,7 @@ if (contest) {
<%
let formUrl;
if (contest) formUrl = syzoj.utils.makeUrl(['problem', problem.id, 'submit'], { contest_id: contest.id });
else formUrl = syzoj.utils.makeUrl(['problem', problem.id, 'submit', problem.id]);
else formUrl = syzoj.utils.makeUrl(['problem', problem.id, 'submit']);
%>
<form class="ui form" action="<%= formUrl %>" method="post" onsubmit="return submit_code()" id="submit_code">
<input name="language" type="hidden" id="form">

2
views/submission_content.ejs

@ -154,7 +154,7 @@ $(function() {
<script>
<% if (isPending(judge.status) && judge.allowedSeeResult) { %>
document.addEventListener('mousedown', function (event) {
var list = $('#judge_detail_item').find('div.auto_update_activation');
var list = $('#submission_content').find('div.auto_update_activation');
for (var i = 0; i < list.length; ++i) {
$(list[i]).removeClass('auto_update_activation');
}

Loading…
Cancel
Save