summaryrefslogtreecommitdiff
path: root/public/static/collapse.js
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-02-21 17:22:04 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-02-21 17:22:04 +0100
commit5989f8501dda05eaeba56431eececcc2e72b3317 (patch)
tree2916933b1240ddc7070b512b2b86f1ba32645aa5 /public/static/collapse.js
parente0c0421f57cbf2ae99ff9f3c669878c97f061c58 (diff)
hide developer nodes by default
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 373870c..bdfaa9f 100644
--- a/public/static/collapse.js
+++ b/public/static/collapse.js
@@ -52,4 +52,21 @@ $(document).ready(function() {
}
});
});
+ $('.developers-header').each(function() {
+ $(this).click(function() {
+ var developers = $('.developers');
+ if ($(this).hasClass('developers-header-collapsed')) {
+ $(this).removeClass('developers-header-collapsed');
+ $(this).addClass('developers-header-expanded');
+ developers.removeClass('developers-collapsed');
+ developers.addClass('developers-expanded');
+ }
+ else {
+ $(this).removeClass('developers-header-expanded');
+ $(this).addClass('developers-header-collapsed');
+ developers.removeClass('developers-expanded');
+ developers.addClass('developers-collapsed');
+ }
+ });
+ });
});