From bc476682061aa54f197f96ff091373cd4ca92677 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 1 Nov 2017 12:06:04 +0100 Subject: Use standard way of showing and hiding popover menu Signed-off-by: Jan-Christoph Borchardt --- apps/files_sharing/js/public.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files_sharing/js') diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 8799e3e6fc8..17dbdcd2696 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -426,7 +426,7 @@ $(document).ready(function () { } $('#share-menutoggle').click(function() { - $('#share-menu').show(); + $('#share-menu').toggleClass('open'); }); }); @@ -436,6 +436,6 @@ $(document).mouseup(function(e) { // if the target of the click isn't the container nor a descendant of the container if (!container.is(e.target) && container.has(e.target).length === 0) { - container.hide(); + container.removeClass('open'); } }); -- cgit v1.2.3