Improve jQuery element selector
see https://github.com/owncloud/core/pull/7012/files#r9337198 http://24ways.org/2011/your-jquery-now-with-less-suck/
This commit is contained in:
parent
d0c8b310b9
commit
65843e2459
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue