From da9349ea621fbb506b0e1d78a8bf0a8f3958b48e Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 3 Jan 2023 10:59:38 +0000 Subject: provide inline error messages for mod cloud --- view/js/mod_cloud.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'view/js') diff --git a/view/js/mod_cloud.js b/view/js/mod_cloud.js index 7f9cb4fd1..e0f59beab 100644 --- a/view/js/mod_cloud.js +++ b/view/js/mod_cloud.js @@ -411,6 +411,9 @@ function UploadInit() { var filedrag = $(".cloud-index.attach-drop"); var reload = false; + if (!$('#invisible-cloud-file-upload').length) + return; + $('#invisible-cloud-file-upload').fileupload({ url: 'file_upload', dataType: 'json', -- cgit v1.2.3