summaryrefslogtreecommitdiff
path: root/public/static/js/collapse.js
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-02-09 20:00:58 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-02-09 20:00:58 +0100
commiteeec5faaf0a94e3d238049d34eaa24d08e57b01e (patch)
tree8c8ad7ad3e19ba30a176e63e00c12defa9ada3c0 /public/static/js/collapse.js
parent5f789e9e046d80abbf57342a24f072807fbbc092 (diff)
Include requested station in train route3.0.2
Diffstat (limited to 'public/static/js/collapse.js')
-rw-r--r--public/static/js/collapse.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/public/static/js/collapse.js b/public/static/js/collapse.js
index 59d42b2..099fefd 100644
--- a/public/static/js/collapse.js
+++ b/public/static/js/collapse.js
@@ -47,20 +47,19 @@ function dbf_reg_handlers() {
}
$('.moreinfo .mfooter').append('Meldungen: <ul>' + ibuf + '</ul>');
}
+ var routebuf = '';
if (trainElem.data('routeprev') != '') {
- var routebuf = '';
for (var key in routeprev) {
routebuf += '<li>' + routeprev[key] + '</li>';
}
- $('.moreinfo .mfooter').append('Von: <ul class="mroute">' + routebuf + '</ul>');
}
+ routebuf += '<li><strong>' + document.title + '</strong></li>';
if (trainElem.data('routenext') != '') {
- var routebuf = '';
for (var key in routenext) {
routebuf += '<li>' + routenext[key] + '</li>';
}
- $('.moreinfo .mfooter').append('Nach: <ul class="mroute">' + routebuf + '</ul>');
}
+ $('.moreinfo .mfooter').append('Fahrtverlauf: <ul class="mroute">' + routebuf + '</ul>');
$.get(window.location.href, {train: trainElem.data('train'), ajax: 1}, function(data) {
$('.moreinfo').html(data);
}).fail(function() {