summaryrefslogtreecommitdiff
path: root/public/static/js/collapse.js
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-10-17 18:27:38 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-10-17 18:27:38 +0200
commit60b691aa76a3956872ecd841f63546c83dc3ea7f (patch)
treedb4e79c7fbc73c669c570c0ef66f3fd743ca584f /public/static/js/collapse.js
parent97ee311debb274e166ec412d179e58e47adc09c2 (diff)
fix "loading" message being displayed multiple times2.3.11
Diffstat (limited to 'public/static/js/collapse.js')
-rw-r--r--public/static/js/collapse.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/public/static/js/collapse.js b/public/static/js/collapse.js
index 79c809f..59d42b2 100644
--- a/public/static/js/collapse.js
+++ b/public/static/js/collapse.js
@@ -21,8 +21,10 @@ function dbf_reg_handlers() {
$('.moreinfo .train-no').text(trainElem.data('no'));
$('.moreinfo .train-origin').text(trainElem.data('from'));
$('.moreinfo .train-dest').text(trainElem.data('to'));
+ if ($('.moreinfo .loading').length == 0) {
+ $('.moreinfo .mheader').append('<div class="loading">Lade Daten, bitte warten...</div>');
+ }
$('.moreinfo .minfo').text('');
- $('.moreinfo .mheader').append('<div style="text-align: center; width: 100%; color: #888888;">Lade Daten, bitte warten...</div>');
$('.moreinfo .mfooter').html('');
$('.moreinfo .verbose').html('');
$('.moreinfo .mroute').html('');