diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-06-30 13:20:38 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-06-30 14:21:27 +0200 |
commit | 5e4ac548bb8eb752e8c05f260991b1dfb1fff9ab (patch) | |
tree | 7d17497baf8e0c14f4e325fe3f3891bb275228c6 | |
parent | 589f68ebf6dde3f0a804732a716bb6fd18363e00 (diff) | |
download | nextcloud-server-5e4ac548bb8eb752e8c05f260991b1dfb1fff9ab.tar.gz nextcloud-server-5e4ac548bb8eb752e8c05f260991b1dfb1fff9ab.zip |
Use attr() instead of data() so the item ids work as intended
Fix #8841
-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 0999bfd6bed..2efed5310bc 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -107,7 +107,7 @@ var appendTo = $tr.find('td.filename'); // Check if drop down is already visible for a different file if (OC.Share.droppedDown) { - if ($tr.data('id') !== $('#dropdown').attr('data-item-source')) { + if ($tr.attr('data-id') !== $('#dropdown').attr('data-item-source')) { OC.Share.hideDropDown(function () { $tr.addClass('mouseOver'); OC.Share.showDropDown(itemType, $tr.data('id'), appendTo, true, possiblePermissions, filename); |