aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/dispy-dark/theme.php
diff options
context:
space:
mode:
authorSimon <simon@kisikew.org>2012-03-16 13:44:39 -0700
committerSimon <simon@kisikew.org>2012-03-16 13:44:39 -0700
commitc7dd52be6268e0232dc3c3e035235078b5ea4547 (patch)
tree535368ad80b1cf341d8cd529d1f77e72c2bbda4d /view/theme/dispy-dark/theme.php
parent1246a40ec22d1df7c0aa47d13690a65e868edaa4 (diff)
parent91fee866b7f870b66d770c7c4e6db0afd874de33 (diff)
downloadvolse-hubzilla-c7dd52be6268e0232dc3c3e035235078b5ea4547.tar.gz
volse-hubzilla-c7dd52be6268e0232dc3c3e035235078b5ea4547.tar.bz2
volse-hubzilla-c7dd52be6268e0232dc3c3e035235078b5ea4547.zip
Merge pull request #142 from simonlnu/master
make profiles-menu disappear when clicked outside of it
Diffstat (limited to 'view/theme/dispy-dark/theme.php')
-rw-r--r--view/theme/dispy-dark/theme.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/view/theme/dispy-dark/theme.php b/view/theme/dispy-dark/theme.php
index 0134b1f91..b57971db9 100644
--- a/view/theme/dispy-dark/theme.php
+++ b/view/theme/dispy-dark/theme.php
@@ -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() {