fileList needs be be declared before the if-statement

This commit is contained in:
Bjoern Schiessle 2014-05-22 14:28:29 +02:00
parent 050df76830
commit 1166d62d9b
1 changed files with 1 additions and 1 deletions

View File

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