update Di 7. Jul 16:01:01 CEST 2020
This commit is contained in:
parent
7a0d1ff9b1
commit
deb6522280
File diff suppressed because one or more lines are too long
@ -282,7 +282,7 @@ socket.on('io.deleted', function (data) {
|
||||
setTimeout(function () {
|
||||
$('#waipModalTitle').html('ACHTUNG');
|
||||
$('#waipModalBody').html(`Der aufgerufene Einsatz wurde gelöscht und ist in diesem System nicht mehr verfügbar.<br>
|
||||
Sie werden in einer Minute auf die Startseite zurück`);
|
||||
Sie werden in einer Minute auf die Startseite zurückgeleitet.`);
|
||||
$('#waipModal').modal('show');
|
||||
setTimeout(function () {
|
||||
window.location.href = window.location.origin;
|
||||
|
||||
42
public/js/vis-timeline.min.js
vendored
42
public/js/vis-timeline.min.js
vendored
File diff suppressed because one or more lines are too long
@ -570,7 +570,10 @@ module.exports = function (db, app_cfg) {
|
||||
|
||||
function db_socket_get_dbrd(waip_id, callback) {
|
||||
// Client-Eintrag per Socket-ID finden
|
||||
console.log(waip_id);
|
||||
db.all('select socket_id from waip_clients where client_status = ? and socket_id like \'/dbrd#%\'', [waip_id], function (err, rows) {
|
||||
console.log(rows);
|
||||
console.log(err);
|
||||
if (err == null && rows) {
|
||||
callback && callback(rows);
|
||||
} else {
|
||||
|
||||
@ -327,7 +327,7 @@ module.exports = function (io, sql, fs, brk, async, app_cfg) {
|
||||
if (waip) {
|
||||
sql.db_log('WAIP', 'Einsatz mit der ID ' + waip.id + ' ist veraltet und kann gelöscht werden.')
|
||||
// Dashboards trennen, deren Einsatz geloescht wurde
|
||||
sql.db_socket_get_dbrd(waip.uuid, function (socket_ids) {
|
||||
sql.db_socket_get_dbrd(waip.id, function (socket_ids) {
|
||||
// TODO TEST: Dashboard-Trennen-Funktion testen
|
||||
if (socket_ids) {
|
||||
socket_ids.forEach(function (row) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user