summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-05-22 14:28:29 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-05-22 14:31:16 +0200
commit1166d62d9be783cb56e0bd8fbfc016447bdbdda4 (patch)
tree625ad093ebccce57bb1f1abe981ddabe49cd87b5
parent050df76830f05e25df0c298988658c9482fb4b87 (diff)
downloadnextcloud-server-1166d62d9be783cb56e0bd8fbfc016447bdbdda4.tar.gz
nextcloud-server-1166d62d9be783cb56e0bd8fbfc016447bdbdda4.zip
fileList needs be be declared before the if-statement
-rw-r--r--apps/files_sharing/js/share.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 1b04097ccb1..ec46bbe44f1 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 = '<a class="action action-share-notification permanent"' +
' data-action="Share-Notification" href="#" original-title="">' +