diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-04-15 12:42:12 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-04-15 12:42:12 +0200 |
commit | bbe33f9503de4c616921b557071cc965ce0508f0 (patch) | |
tree | 8788eecbcc2efdb68db8089ac22ed80bb2038145 /view/theme/redbasic/js | |
parent | 521641f3a8e9d3b217e60baaf4fa3e5890108a4e (diff) | |
parent | 2cb04ccb8fb2fcbea181f6bf82f0d2a9a848d57a (diff) | |
download | volse-hubzilla-bbe33f9503de4c616921b557071cc965ce0508f0.tar.gz volse-hubzilla-bbe33f9503de4c616921b557071cc965ce0508f0.tar.bz2 volse-hubzilla-bbe33f9503de4c616921b557071cc965ce0508f0.zip |
Merge branch 'master' into dev
Diffstat (limited to 'view/theme/redbasic/js')
-rw-r--r-- | view/theme/redbasic/js/redbasic.js | 12 |
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'); + } +}); |