diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-09-21 18:50:24 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-09-21 18:50:24 +0200 |
commit | 1ccb20d8c19a7c9998b9daecbcf9d89a64714de4 (patch) | |
tree | 3d30bb630591a322f73fe51bb588750a5c9afab7 /public/static/js/collapse.js | |
parent | 12e55126ec17f49cd8af27d172c96fd61fd2297a (diff) |
add permalink to train details
Diffstat (limited to 'public/static/js/collapse.js')
-rw-r--r-- | public/static/js/collapse.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/public/static/js/collapse.js b/public/static/js/collapse.js index 3dcb2e6..0d12fca 100644 --- a/public/static/js/collapse.js +++ b/public/static/js/collapse.js @@ -122,8 +122,10 @@ $(function() { }); }); $('.moreinfo').click(function() { - $(this).removeClass('expanded-moreinfo'); - $(this).addClass('collapsed-moreinfo'); + if (!$(this).data('static')) { + $(this).removeClass('expanded-moreinfo'); + $(this).addClass('collapsed-moreinfo'); + } }); dbf_reg_handlers(); if ($('.content .app').length) { |