ui: fix contest_delete

This commit is contained in:
undefined committed 2022-11-30 17:52:57 +08:00
1 parent a43dc22599
commit fee34811b4
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -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;
}); });
} }