Fix closing the sharing dropdown by clicking on the share button

This commit is contained in:
Michael Gapczynski 2012-10-09 12:42:49 -04:00 committed by Lukas Reschke
parent 38e9bc2adb
commit 4e6f720f14
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ $(document).ready(function() {
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')) {
if ($(tr).data('id') != $('#dropdown').attr('data-item-source')) {
OC.Share.hideDropDown(function () {
$(tr).addClass('mouseOver');
OC.Share.showDropDown(itemType, $(tr).data('id'), appendTo, true, possiblePermissions);