ui: fix home_file upload

pull/241/head
undefined 3 years ago
parent 5ceb929304
commit d2277aa76f

@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.25.11",
"version": "4.25.12",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",

@ -130,7 +130,7 @@ function handleDragOver(ev) {
*/
function handleDrop(ev) {
ev.preventDefault();
if (!$('[name="upload_testdata"]').length) {
if (!$('[name="upload_file"]').length) {
Notification.error(i18n("You don't have permission to upload file."));
return;
}

Loading…
Cancel
Save