]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixes files_drop when avatars are disabled 2084/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Thu, 10 Nov 2016 19:55:18 +0000 (20:55 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Sun, 13 Nov 2016 13:39:38 +0000 (14:39 +0100)
Fixes: #2080
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/files_sharing/js/files_drop.js

index 64051844d037a47f26eae539e1b759bf9864e270..f9f6959c9525b1e58db2cbf222b4d530096841e0 100644 (file)
        };
 
        $(document).ready(function() {
-               if($('#upload-only-interface').val() === "1") {
+               if($('#upload-only-interface').val() === "1" && oc_config.enable_avatars) {
                        $('.avatardiv').avatar($('#sharingUserId').val(), 128, true);
                }