summaryrefslogtreecommitdiff
path: root/plugins/kolab_files
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/kolab_files')
-rw-r--r--plugins/kolab_files/kolab_files.js3
-rw-r--r--plugins/kolab_files/skins/larry/templates/files.html2
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/kolab_files/kolab_files.js b/plugins/kolab_files/kolab_files.js
index ed3e52c..22adcce 100644
--- a/plugins/kolab_files/kolab_files.js
+++ b/plugins/kolab_files/kolab_files.js
@@ -819,6 +819,9 @@ kolab_files_drag_drop_init = function(container)
return;
}
+ if (!container.length)
+ return;
+
$(document.body).bind('dragover dragleave drop', function(e) {
if (!file_api.env.folder)
return;
diff --git a/plugins/kolab_files/skins/larry/templates/files.html b/plugins/kolab_files/skins/larry/templates/files.html
index 149826b..2d0b0d1 100644
--- a/plugins/kolab_files/skins/larry/templates/files.html
+++ b/plugins/kolab_files/skins/larry/templates/files.html
@@ -44,7 +44,7 @@
</div>
</div>
-<div id="filelistcontainer" class="uibox">
+<div id="filelistcontainer" class="uibox droptarget">
<h2 id="aria-label-filelist" class="voice"><roundcube:label name="arialabelfilelist" /></h2>
<div id="filelistbox" class="boxlistcontent">
<roundcube:object name="filelist" id="filelist" class="records-table filelist sortheader fixedheader" optionsmenuIcon="true" aria-labelledby="aria-label-filelist" />