Merge pull request #7698 from owncloud/backport_7631

only enable drag&drop upload if public upload is allowed
This commit is contained in:
Vincent Petry 2014-03-12 23:51:45 +01:00
commit bc5145e267

View file

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