aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_cloud.js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js/mod_cloud.js')
-rw-r--r--view/js/mod_cloud.js3
1 files changed, 3 insertions, 0 deletions
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',