]> source.dussan.org Git - nextcloud-server.git/commitdiff
fileList needs be be declared before the if-statement
authorBjoern Schiessle <schiessle@owncloud.com>
Thu, 22 May 2014 12:28:29 +0000 (14:28 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Thu, 22 May 2014 12:31:16 +0000 (14:31 +0200)
apps/files_sharing/js/share.js

index 1b04097ccb1750816755d0a30eaccdacf6f11191..ec46bbe44f1b1fb0740fa05d4f13b1adc1813389 100644 (file)
@@ -31,8 +31,8 @@ $(document).ready(function() {
                        // we create a share notification action to inform the user about files
                        // shared with him otherwise we just update the existing share action.
                        var allShared;
+                       var $fileList = $(this);
                        if (oc_appconfig.core.sharingDisabledForUser) {
-                               var $fileList = $(this);
                                allShared = $fileList.find('[data-share-owner]');
                                var shareNotification = '<a class="action action-share-notification permanent"' +
                                                ' data-action="Share-Notification" href="#" original-title="">' +