diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-04-05 12:21:39 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-04-05 12:21:39 +0200 |
commit | bbeb3402b6bc778de393b6da1b5fdc214f825b16 (patch) | |
tree | c6acabcd87666f34beb3eb59bcf93a09338170fa /apps/files_sharing/js/public.js | |
parent | cc3b1179fc2ad0051cb6043ff022cd033144a936 (diff) | |
download | nextcloud-server-bbeb3402b6bc778de393b6da1b5fdc214f825b16.tar.gz nextcloud-server-bbeb3402b6bc778de393b6da1b5fdc214f825b16.zip |
Move styling and menu handling to publicpage.js
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/js/public.js')
-rw-r--r-- | apps/files_sharing/js/public.js | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 4b3ede24389..1be51d4b688 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -423,20 +423,4 @@ $(document).ready(function () { }; } - $('#share-menutoggle').click(function() { - $('#share-menu').toggleClass('open'); - }); -}); - - -$(document).mouseup(function(e) { - var toggle = $('#share-menutoggle'); - var container = $('#share-menu'); - - // if the target of the click isn't the menu toggle, nor a descendant of the - // menu toggle, nor the container nor a descendant of the container - if (!toggle.is(e.target) && toggle.has(e.target).length === 0 && - !container.is(e.target) && container.has(e.target).length === 0) { - container.removeClass('open'); - } -}); +});
\ No newline at end of file |