summaryrefslogtreecommitdiff
path: root/public/static/collapse.js
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-09-18 22:23:36 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-09-18 22:23:36 +0200
commita1db5b626ff8a23c6c0e1c47b793774f6fb499bc (patch)
treea193a74dafe441a0c27aaf79b38b5a32f1fd2b99 /public/static/collapse.js
parent38e787fc72f21a572f3019f9bd3a86cc497f641d (diff)
hide non-primary options behind js menu
Diffstat (limited to 'public/static/collapse.js')
-rw-r--r--public/static/collapse.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/public/static/collapse.js b/public/static/collapse.js
index d38b30a..b6537be 100644
--- a/public/static/collapse.js
+++ b/public/static/collapse.js
@@ -19,4 +19,21 @@ $(document).ready(function() {
});
});
});
+ $('.moresettings-header').each(function() {
+ $(this).click(function() {
+ var moresettings = $('.moresettings');
+ if ($(this).hasClass('moresettings-header-collapsed')) {
+ $(this).removeClass('moresettings-header-collapsed');
+ $(this).addClass('moresettings-header-expanded');
+ moresettings.removeClass('moresettings-collapsed');
+ moresettings.addClass('moresettings-expanded');
+ }
+ else {
+ $(this).removeClass('moresettings-header-expanded');
+ $(this).addClass('moresettings-header-collapsed');
+ moresettings.removeClass('moresettings-expanded');
+ moresettings.addClass('moresettings-collapsed');
+ }
+ });
+ });
});