]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/dispy-dark/theme.php
Merge remote branch 'upstream/master'
[friendica.git] / view / theme / dispy-dark / theme.php
index 0134b1f91b91c579bc1e82c62527bf4df840c04c..b57971db9695eb921337ea28f45b98ab5582b625 100644 (file)
@@ -73,6 +73,15 @@ $(document).ready(function() {
        $('#nav-notifications-linkmenu').click(function(event) {
                event.stopPropagation();
        });
+       // click outside profiles menu closes it
+       $('html').click(function() {
+               $('#profiles-menu-trigger').removeClass('selected');
+               document.getElementById("profiles-menu").style.display = "none";
+       });
+
+       $('#profiles-menu').click(function(event) {
+               event.stopPropagation();
+       });
 
        // main function in toolbar functioning
     function toggleToolbar() {