diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2017-11-01 12:06:04 +0100 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2017-11-01 12:06:04 +0100 |
commit | bc476682061aa54f197f96ff091373cd4ca92677 (patch) | |
tree | 045c9b1c1f526b1acc0a87e4999d5a0186e60ea7 /apps | |
parent | b3ccaf815d13309fa5e1859033ca94ac7f46148c (diff) | |
download | nextcloud-server-bc476682061aa54f197f96ff091373cd4ca92677.tar.gz nextcloud-server-bc476682061aa54f197f96ff091373cd4ca92677.zip |
Use standard way of showing and hiding popover menu
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/js/public.js | 4 | ||||
-rw-r--r-- | apps/files_sharing/templates/public.php | 2 |
2 files changed, 3 insertions, 3 deletions
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'); } }); diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 9508b9f68ba..eb721f8eedf 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -50,7 +50,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); <div class="header-right"> <?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] === false)) { ?> <a href="#" id="share-menutoggle" class="menutoggle icon-more-white"><span class="share-menutoggle-text"><?php p($l->t('Download')) ?></span></a> - <div id="share-menu" class="popovermenu menu hidden"> + <div id="share-menu" class="popovermenu menu"> <ul> <li> <a href="<?php p($_['downloadURL']); ?>" id="download"> |