summaryrefslogtreecommitdiff
path: root/public/static/js/collapse.js
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-09-21 18:50:24 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-09-21 18:50:24 +0200
commit1ccb20d8c19a7c9998b9daecbcf9d89a64714de4 (patch)
tree3d30bb630591a322f73fe51bb588750a5c9afab7 /public/static/js/collapse.js
parent12e55126ec17f49cd8af27d172c96fd61fd2297a (diff)
add permalink to train details
Diffstat (limited to 'public/static/js/collapse.js')
-rw-r--r--public/static/js/collapse.js6
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) {