mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix contest_delete
This commit is contained in:
1 parent
a43dc22599
commit
fee34811b4
2 files changed
+2
-1
No files matched your search
@@ -753,6 +753,7 @@ export const statusText = (tdoc: Tdoc, tsdoc?: any) => (
|
|||||||
|
|
||||||
global.Hydro.model.contest = {
|
global.Hydro.model.contest = {
|
||||||
RULES,
|
RULES,
|
||||||
|
AccessControl,
|
||||||
add,
|
add,
|
||||||
getListStatus,
|
getListStatus,
|
||||||
getMultiStatus,
|
getMultiStatus,
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ const page = new NamedPage(['contest_edit', 'contest_create', 'homework_create',
|
|||||||
$(document).on('click', '[name="operation"]', (ev) => {
|
$(document).on('click', '[name="operation"]', (ev) => {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
if (confirmed) {
|
if (confirmed) {
|
||||||
return request.post('.', { operation: 'delete' }).then((res) => {
|
return request.post('', { operation: 'delete' }).then((res) => {
|
||||||
window.location.href = res.url;
|
window.location.href = res.url;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user