nextcloud/apps/files_sharing/js
Daniel Calviño Sánchez 372e7acfaf Fix closing menu on second click in sharing page
When a "mouseup" event was triggered on any element except on the share
menu or its descendants the share menu was closed. The share menu toggle
is not a descendant of the share menu, so clicking on it when the share
menu was shown closed it by removing its "open" CSS class. However, once
that happened the click event was then handled by the share menu toggle,
which toggled the "open" CSS class in the share menu and thus added it
again. So, from the user point of view, nothing happened when clicking
on the share menu toggle if the share menu was open.

Now a "mouseup" event on the share menu toggle no longer closes the
share menu, and thus toggling the "open" CSS class when handling the
"click" event works as expected.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-12-21 12:37:35 +01:00
..
additionalScripts.json Combine additional files_sharing scripts 2017-03-24 10:58:11 +01:00
app.js Fix AdBlock blocking share icon, ref #866 2017-04-12 15:04:12 +02:00
authenticate.js Public link share disabled if password length is equal to 0 2016-03-08 04:25:35 +05:30
files_drop.js Do not iterate over the files 2017-08-18 15:18:20 +02:00
public.js Fix closing menu on second click in sharing page 2017-12-21 12:37:35 +01:00
share.js rip out obsolete recipientsDisplayName 2017-11-23 13:32:14 +01:00
sharebreadcrumbview.js Fix AdBlock blocking share icon, ref #866 2017-04-12 15:04:12 +02:00
sharedfilelist.js recycle SharedFileInfo values in fileInfo 2017-11-23 17:51:56 +01:00
sharetabview.js refactor share permission logic into own method to reuse it for the share tab 2016-11-07 14:58:45 +01:00