]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix closing the sharing dropdown by clicking on the share button
authorMichael Gapczynski <mtgap@owncloud.com>
Tue, 9 Oct 2012 16:42:49 +0000 (12:42 -0400)
committerLukas Reschke <lukas@statuscode.ch>
Tue, 9 Oct 2012 17:23:44 +0000 (19:23 +0200)
apps/files_sharing/js/share.js

index a171751589ae29f648dc7450e9142ad26ac891ff..bc94d78fb765f4d020f118310c2d2530d035b576 100644 (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);