diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-02-21 17:22:04 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-02-21 17:22:04 +0100 |
commit | 5989f8501dda05eaeba56431eececcc2e72b3317 (patch) | |
tree | 2916933b1240ddc7070b512b2b86f1ba32645aa5 /public/static/collapse.js | |
parent | e0c0421f57cbf2ae99ff9f3c669878c97f061c58 (diff) |
hide developer nodes by default
Diffstat (limited to 'public/static/collapse.js')
-rw-r--r-- | public/static/collapse.js | 17 |
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'); + } + }); + }); }); |