only initialise upload dropZone if public upload is allowed

This commit is contained in:
IchEben 2014-03-07 17:45:24 +01:00
parent 3eb58d9973
commit e7d5715114
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ OC.Upload = {
}, },
init: function() { init: function() {
if ( $('#file_upload_start').exists() ) { if ( $('#file_upload_start').exists() && $('#file_upload_start').is(':visible')) {
var file_upload_param = { var file_upload_param = {
dropZone: $('#content'), // restrict dropZone to content div dropZone: $('#content'), // restrict dropZone to content div