From e15c9db218fc51ca56b6af115eafb029ae0aa740 Mon Sep 17 00:00:00 2001 From: Pisces000221 <1786762946@qq.com> Date: Fri, 17 Feb 2017 16:39:06 +0800 Subject: [PATCH] Update legacy DOM names and URLs --- modules/problem.js | 2 +- views/problem.ejs | 2 +- views/submission_content.ejs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/problem.js b/modules/problem.js index 6cb0130..ddc4028 100644 --- a/modules/problem.js +++ b/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); diff --git a/views/problem.ejs b/views/problem.ejs index 069656a..b970480 100644 --- a/views/problem.ejs +++ b/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']); %>
diff --git a/views/submission_content.ejs b/views/submission_content.ejs index 1f6cb12..e7fbfe6 100644 --- a/views/submission_content.ejs +++ b/views/submission_content.ejs @@ -154,7 +154,7 @@ $(function() {