summaryrefslogtreecommitdiff
path: root/public/static/collapse.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/static/collapse.js')
-rw-r--r--public/static/collapse.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/public/static/collapse.js b/public/static/collapse.js
index 1cd7341..15a0f8d 100644
--- a/public/static/collapse.js
+++ b/public/static/collapse.js
@@ -12,8 +12,9 @@ $(document).ready(function() {
var trainElem = $(this);
$('.moreinfo').each(function() {
var infoElem = $(this);
- $('.moreinfo .train-line').text(trainElem.data('train'));
- $('.moreinfo .train-no').text('');
+ $('.moreinfo .train-line').removeClass('bahn sbahn fern ext').addClass(trainElem.data('linetype'));
+ $('.moreinfo .train-line').text(trainElem.data('line'));
+ $('.moreinfo .train-no').text(trainElem.data('no'));
$('.moreinfo .train-origin').text(trainElem.data('from'));
$('.moreinfo .train-dest').text(trainElem.data('to'));
$('.moreinfo .minfo').text('');