diff --git a/public/js/client_dbrd.js b/public/js/client_dbrd.js index 715a714..301ae3c 100755 --- a/public/js/client_dbrd.js +++ b/public/js/client_dbrd.js @@ -387,14 +387,19 @@ socket.on('io.Einsatz', function (data) { //table_em.rows[wache_zeile].cells[1].appendChild(newText2); //table_em.rows[wache_zeile].cells[1].setAttribute('pr-2'); } else { - var tableRef = document.getElementById('table_einsatzmittel').getElementsByTagName('tbody')[0]; - var newRow = tableRef.insertRow(); - var newCell = newRow.insertCell(0); - var newText = document.createTextNode(data.einsatzmittel[i].wachenname); + //var tableRef = document.getElementById('table_einsatzmittel').getElementsByTagName('tbody')[0]; + //var newRow = tableRef.insertRow(); + //var newCell = newRow.insertCell(0); + //var newText = document.createTextNode(data.einsatzmittel[i].wachenname); //newCell.outerHTML = ""; - newCell.appendChild(newText); + //newCell.appendChild(newText); + var tr = document.getElementById('tatable_einsatzmittelble').tHead.children[0], + th = document.createElement('th'); + th.innerHTML = data.einsatzmittel[i].wachenname; + tr.appendChild(th); + var flex_div = document.createElement('div'); flex_div.className = 'd-flex flex-wrap justify-content-between align-items-center'; diff --git a/views/includes/header.pug b/views/includes/header.pug index 6d9ddd9..7cd970e 100644 --- a/views/includes/header.pug +++ b/views/includes/header.pug @@ -10,8 +10,7 @@ header a.text-nowrap.nav-link.ion-md-home(href='/')  Startseite li.nav-item(class=(title == 'Alarmmonitor') ? 'active' : null) a.text-nowrap.nav-link.ion-md-desktop(href='/waip')  Alarmmonitor - // TODO Dashboard wieder aktivieren - //li.nav-item(class=(title == 'Dashboard') ? 'active' : null) + li.nav-item(class=(title == 'Dashboard') ? 'active' : null) a.text-nowrap.nav-link.ion-md-clipboard(href='/dbrd')  Dashboard ul.navbar-nav.ml-auto li.text-nowrap.nav-item.dropdown diff --git a/views/includes/master_dashboard.pug b/views/includes/master_dashboard.pug index fca3419..fba1e81 100755 --- a/views/includes/master_dashboard.pug +++ b/views/includes/master_dashboard.pug @@ -53,13 +53,16 @@ style(type='text/css'). .vis-custom-time-marker { right: 2px; } + .vis-rolling-mode-btn:before { + content: "\2B8C"; + } .row .col-12.d-flex.justify-content-between.flex-wrap .d-flex.justify-content-start .text-muted Alarmierung:  #einsatz_datum.text-muted.text-right   2345 .d-flex.justify-content-end - #dbrd_id.text-muted 2341234345453 + #dbrd_id.text-secondary 2341234345453 .row //.col-12.text-center.p-3