aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-04-15 12:39:22 +0200
committerMario Vavti <mario@mariovavti.com>2016-04-15 12:39:22 +0200
commit2cb04ccb8fb2fcbea181f6bf82f0d2a9a848d57a (patch)
tree719cdb6e6a58eac7cdc3fa2cb10b604b85f68607 /view/theme/redbasic/js
parentce34c4086d621197575724015d9fc3e4dac99c49 (diff)
downloadvolse-hubzilla-2cb04ccb8fb2fcbea181f6bf82f0d2a9a848d57a.tar.gz
volse-hubzilla-2cb04ccb8fb2fcbea181f6bf82f0d2a9a848d57a.tar.bz2
volse-hubzilla-2cb04ccb8fb2fcbea181f6bf82f0d2a9a848d57a.zip
nav: move js and css out of template, provide a help button in the panel on small screens and lots of whitespace cleanup
Diffstat (limited to 'view/theme/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');
+ }
+});