From 65843e245996c9ecfd167be2b520bb917b32aa7e Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Sat, 1 Feb 2014 14:52:41 +0100 Subject: [PATCH] Improve jQuery element selector see https://github.com/owncloud/core/pull/7012/files#r9337198 http://24ways.org/2011/your-jquery-now-with-less-suck/ --- 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 b08f3370c6f..9f0ed12f935 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -6,7 +6,7 @@ $(document).ready(function() { if (typeof OC.Share !== 'undefined' && typeof FileActions !== 'undefined' && !disableSharing) { $('#fileList').on('fileActionsReady',function(){ - var allShared = $('*[data-share-owner]').find('[data-Action="Share"]'); + var allShared = $('#fileList').find('[data-share-owner]').find('[data-Action="Share"]'); allShared.addClass('permanent'); allShared.find('span').text(function(){ $owner = $(this).closest('tr').attr('data-share-owner');