diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-24 10:01:01 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-24 10:05:37 -0400 |
commit | 36487246eddc87342d113de8f133f8fb910c70ad (patch) | |
tree | f073b1cc6089e8b24241995b351ebf77722d06b1 /apps/files_sharing/js/share.js | |
parent | cfec290ad90f8bce01f37cd0ec1f957219770aad (diff) | |
download | nextcloud-server-36487246eddc87342d113de8f133f8fb910c70ad.tar.gz nextcloud-server-36487246eddc87342d113de8f133f8fb910c70ad.zip |
Switch to using file cache ids instead of paths for file sharing
Diffstat (limited to 'apps/files_sharing/js/share.js')
-rw-r--r-- | apps/files_sharing/js/share.js | 10 |
1 files changed, 5 insertions, 5 deletions
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); } }); } |