aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/js/redbasic.js
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-15 14:27:28 -0700
committerredmatrix <git@macgirvin.com>2016-04-15 14:27:28 -0700
commitee5163ce6425a1676a342f72d3e3cea90a406170 (patch)
tree8788eecbcc2efdb68db8089ac22ed80bb2038145 /view/theme/redbasic/js/redbasic.js
parentf124f4a9f5244644231e541d430e5f80e4f863e2 (diff)
parent2cb04ccb8fb2fcbea181f6bf82f0d2a9a848d57a (diff)
downloadvolse-hubzilla-ee5163ce6425a1676a342f72d3e3cea90a406170.tar.gz
volse-hubzilla-ee5163ce6425a1676a342f72d3e3cea90a406170.tar.bz2
volse-hubzilla-ee5163ce6425a1676a342f72d3e3cea90a406170.zip
Merge branch 'master' into dev
Diffstat (limited to 'view/theme/redbasic/js/redbasic.js')
-rw-r--r--view/theme/redbasic/js/redbasic.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index 877bcd840..b4cde6efc 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -67,3 +67,15 @@ function makeFullScreen(full) {
$('main').css({'transition': ''});
}
}
+
+/* contextual help */
+$(document).mouseup(function (e) {
+ var container = $("#help-content");
+
+ if (!container.is(e.target) // if the target of the click isn't the container...
+ && container.has(e.target).length === 0 // ... nor a descendant of the container
+ && container.hasClass('help-content-open'))
+ {
+ container.removeClass('help-content-open');
+ }
+});