Use attr() instead of data() so the item ids work as intended

Fix #8841
This commit is contained in:
Joas Schilling 2014-06-30 13:20:38 +02:00
parent 589f68ebf6
commit 5e4ac548bb

View file

@ -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);