summaryrefslogtreecommitdiff
path: root/public/static/js/collapse.js
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2025-01-09 18:32:51 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2025-01-09 18:32:51 +0100
commit99b1a06f4341bf251a293addfe9eedadd711c3ee (patch)
tree3294dfde1cfc10aa313bac72a9ef660878d70193 /public/static/js/collapse.js
parent68f53f429ec04e1c6fbdaf2bdde18ad1cba7fa6d (diff)
Remove 'loading details' when details raise an error
Diffstat (limited to 'public/static/js/collapse.js')
-rw-r--r--public/static/js/collapse.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/static/js/collapse.js b/public/static/js/collapse.js
index a94b227..4e70c7e 100644
--- a/public/static/js/collapse.js
+++ b/public/static/js/collapse.js
@@ -96,7 +96,8 @@ function dbf_show_moreinfo(trainElem, keep_old) {
$.get(window.location.href, {train: trainElem.data('train'), jid: trainElem.data('jid'), ajax: 1}, function(data) {
$('.moreinfo').html(data);
}).fail(function() {
- $('.moreinfo .mfooter').append('Der Zug ist abgefahren (Zug nicht gefunden)');
+ $('.moreinfo .mfooter').append('Keine weiteren Details verfügbar');
+ $('.moreinfo .loading').remove();
});
infoElem.removeClass('collapsed-moreinfo');
infoElem.addClass('expanded-moreinfo');