show callsigns for ham radio dmr ids

This commit is contained in:
Jakob Ketterl
2019-05-30 17:19:46 +02:00
parent 14f932eea8
commit 7100d43d9e
3 changed files with 63 additions and 3 deletions

View File

@ -1318,7 +1318,15 @@ function update_metadata(meta) {
if (meta.slot) {
var html = 'Timeslot: ' + meta.slot;
if (meta.type) html += ' Typ: ' + meta.type;
if (meta.source && meta.target) html += ' Source: ' + meta.source + ' Target: ' + meta.target;
if (meta.additional && meta.additional.callsign) {
html += ' Source: ' + meta.additional.callsign;
if (meta.additional.fname) {
html += ' (' + meta.additional.fname + ')';
}
} else if (meta.source) {
html += ' Source: ' + meta.source;
}
if (meta.target) html += ' Target: ' + meta.target;
update = function(_, el) {
var slotEl = el.getElementsByClassName('slot-' + meta.slot);
if (!slotEl.length) {