mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix home_file upload
This commit is contained in:
1 parent
5ceb929304
commit
d2277aa76f
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.25.11",
|
"version": "4.25.12",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ function handleDragOver(ev) {
|
|||||||
*/
|
*/
|
||||||
function handleDrop(ev) {
|
function handleDrop(ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
if (!$('[name="upload_testdata"]').length) {
|
if (!$('[name="upload_file"]').length) {
|
||||||
Notification.error(i18n("You don't have permission to upload file."));
|
Notification.error(i18n("You don't have permission to upload file."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user