From 36487246eddc87342d113de8f133f8fb910c70ad Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Fri, 24 Aug 2012 10:01:01 -0400 Subject: Switch to using file cache ids instead of paths for file sharing --- apps/files_sharing/js/share.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/files_sharing/js/share.js') diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index 12c1a3332c9..8754b16b061 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -43,20 +43,20 @@ $(document).ready(function() { var itemType = 'file'; } var possiblePermissions = $(tr).data('permissions'); - var appendTo = $('tr').filterAttr('data-file', filename).find('td.filename'); + var appendTo = $(tr).find('td.filename'); // Check if drop down is already visible for a different file if (OC.Share.droppedDown) { if (item != $('#dropdown').data('item')) { OC.Share.hideDropDown(function () { - $('tr').filterAttr('data-file', filename).addClass('mouseOver'); - OC.Share.showDropDown(itemType, item, appendTo, true, possiblePermissions); + $(tr).addClass('mouseOver'); + OC.Share.showDropDown(itemType, $(tr).data('id'), appendTo, true, possiblePermissions); }); } else { OC.Share.hideDropDown(); } } else { - $('tr').filterAttr('data-file',filename).addClass('mouseOver'); - OC.Share.showDropDown(itemType, item, appendTo, true, possiblePermissions); + $(tr).addClass('mouseOver'); + OC.Share.showDropDown(itemType, $(tr).data('id'), appendTo, true, possiblePermissions); } }); } -- cgit v1.2.3