diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-08-11 20:14:55 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-08-11 20:14:55 +0200 |
commit | 75d5a9234353d50d90f853175bf9af5b41d42044 (patch) | |
tree | d0c252cb8ca989e39717e01770911f4944298175 /public/static/js/collapse.js | |
parent | 661f3d079c7643acac16ffa372c20d80ee42244b (diff) |
use asset versioning
Diffstat (limited to 'public/static/js/collapse.js')
-rw-r--r-- | public/static/js/collapse.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/public/static/js/collapse.js b/public/static/js/collapse.js new file mode 100644 index 0000000..d38b30a --- /dev/null +++ b/public/static/js/collapse.js @@ -0,0 +1,22 @@ +$(document).ready(function() { + $('div.displayclean > ul > li').each(function() { + $(this).click(function() { + $(this).children('.moreinfo').each(function() { + if ($(this).hasClass('expanded-moreinfo')) { + $(this).removeClass('expanded-moreinfo'); + $(this).addClass('collapsed-moreinfo'); + } + else { + $('.moreinfo').each(function() { + if ($(this).hasClass('expanded-moreinfo')) { + $(this).removeClass('expanded-moreinfo'); + $(this).addClass('collapsed-moreinfo'); + } + }); + $(this).removeClass('collapsed-moreinfo'); + $(this).addClass('expanded-moreinfo'); + } + }); + }); + }); +}); |