diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2014-02-01 14:52:41 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-20 18:24:43 +0100 |
commit | 65843e245996c9ecfd167be2b520bb917b32aa7e (patch) | |
tree | fb39e2e282387c2f3706389bfab5abad32120343 /apps | |
parent | d0c8b310b9bd3134c650b4d77a384859519086c6 (diff) | |
download | nextcloud-server-65843e245996c9ecfd167be2b520bb917b32aa7e.tar.gz nextcloud-server-65843e245996c9ecfd167be2b520bb917b32aa7e.zip |
Improve jQuery element selector
see https://github.com/owncloud/core/pull/7012/files#r9337198
http://24ways.org/2011/your-jquery-now-with-less-suck/
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/js/share.js | 2 |
1 files changed, 1 insertions, 1 deletions
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'); |