From 1166d62d9be783cb56e0bd8fbfc016447bdbdda4 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 22 May 2014 14:28:29 +0200 Subject: [PATCH] fileList needs be be declared before the if-statement --- apps/files_sharing/js/share.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index 1b04097ccb..ec46bbe44f 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -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 = '' +