v2 remove log
This commit is contained in:
2
dist/autoloader.js
vendored
2
dist/autoloader.js
vendored
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Wed Nov 28 2018 21:23:53 GMT+0100 (CET)*/
|
/*Generated on:Wed Nov 28 2018 21:26:52 GMT+0100 (CET)*/
|
||||||
var AutomaticDispose_Branch = "master";
|
var AutomaticDispose_Branch = "master";
|
||||||
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
||||||
var da_lss_adis_time = new Date().getTime();
|
var da_lss_adis_time = new Date().getTime();
|
||||||
|
|||||||
14
dist/autoloaderV2.js
vendored
14
dist/autoloaderV2.js
vendored
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Wed Nov 28 2018 21:23:53 GMT+0100 (CET)*/
|
/*Generated on:Wed Nov 28 2018 21:26:52 GMT+0100 (CET)*/
|
||||||
/*
|
/*
|
||||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||||
* ===============================================
|
* ===============================================
|
||||||
@@ -4612,7 +4612,6 @@ class AutomaticDispose {
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
console.log('nonstatic', this.ADisSettings)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get Settings() {
|
get Settings() {
|
||||||
@@ -4666,14 +4665,12 @@ class AutomaticDispose {
|
|||||||
await that.ADisDB.ADisSprechwunsch.where({
|
await that.ADisDB.ADisSprechwunsch.where({
|
||||||
done: 'false'
|
done: 'false'
|
||||||
}).each((myWunsch) => {
|
}).each((myWunsch) => {
|
||||||
console.log('that.CollectRescueSprechwuensche: remove', myWunsch);
|
|
||||||
if ($("#vehicle_list_" + myWunsch.vehicleID).find(".building_list_fms").text() != "5") {
|
if ($("#vehicle_list_" + myWunsch.vehicleID).find(".building_list_fms").text() != "5") {
|
||||||
that.RemoveRescueSprechwunschFromQueue(myWunsch.vehicleID);
|
that.RemoveRescueSprechwunschFromQueue(myWunsch.vehicleID);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return resolve();
|
return resolve();
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
console.log('that.CollectRescueSprechwuensche: add')
|
|
||||||
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
||||||
var VehicleStatus = $(this).find(".building_list_fms").text();
|
var VehicleStatus = $(this).find(".building_list_fms").text();
|
||||||
var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id")));
|
var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id")));
|
||||||
@@ -4687,19 +4684,15 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
OpenNextRescueSprechwunsch() {
|
OpenNextRescueSprechwunsch() {
|
||||||
let that = this;
|
let that = this;
|
||||||
console.log('OpenNextRescueSprechwunsch on');
|
|
||||||
this.ADSettings().then((setting) => {
|
this.ADSettings().then((setting) => {
|
||||||
console.log('OpenNextRescueSprechwunsch', setting);
|
|
||||||
if (setting['Sprechwunsch-Automatic'] == 'true') {
|
if (setting['Sprechwunsch-Automatic'] == 'true') {
|
||||||
return that.ADisDB.ADisSprechwunsch.where({
|
return that.ADisDB.ADisSprechwunsch.where({
|
||||||
done: 'false'
|
done: 'false'
|
||||||
}).limit(1)
|
}).limit(1)
|
||||||
}
|
}
|
||||||
}).then((Wunsch) => {
|
}).then((Wunsch) => {
|
||||||
console.log('OpenNextRescueSprechwunsch', Wunsch);
|
|
||||||
if (Wunsch !== undefined) {
|
if (Wunsch !== undefined) {
|
||||||
Wunsch.each((myWunsch) => {
|
Wunsch.each((myWunsch) => {
|
||||||
console.table(myWunsch);
|
|
||||||
let VehicleID = myWunsch.vehicleID;
|
let VehicleID = myWunsch.vehicleID;
|
||||||
that.UpdateRescueSprechwunschToDone(VehicleID).then(() => {
|
that.UpdateRescueSprechwunschToDone(VehicleID).then(() => {
|
||||||
if ($("#adis-sprechwunsch-rescue-frame").attr("vehicle_id") == "empty") {
|
if ($("#adis-sprechwunsch-rescue-frame").attr("vehicle_id") == "empty") {
|
||||||
@@ -4917,7 +4910,6 @@ class AutomaticDispose {
|
|||||||
}
|
}
|
||||||
|
|
||||||
UpdatePoliceSprechwunschToDone(WunschID) {
|
UpdatePoliceSprechwunschToDone(WunschID) {
|
||||||
console.log(WunschID, typeof WunschID);
|
|
||||||
return this.ADisDB.ADisSprechwunschPolice.add({
|
return this.ADisDB.ADisSprechwunschPolice.add({
|
||||||
missionID: WunschID,
|
missionID: WunschID,
|
||||||
done: 'true'
|
done: 'true'
|
||||||
@@ -5347,19 +5339,16 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
$("#adis-setting-krankentransport-automatic").click(function () {
|
$("#adis-setting-krankentransport-automatic").click(function () {
|
||||||
var tf = $(this).hasClass("active");
|
var tf = $(this).hasClass("active");
|
||||||
console.log(tf);
|
|
||||||
that.ADisDB.ADisSettings.put({
|
that.ADisDB.ADisSettings.put({
|
||||||
name: "Krankentransport-Automatic",
|
name: "Krankentransport-Automatic",
|
||||||
value: !tf ? 'true' : 'false'
|
value: !tf ? 'true' : 'false'
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log(res);
|
|
||||||
that.UIUpdateSettings();
|
that.UIUpdateSettings();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#adis-setting-full-automatic").click(function () {
|
$("#adis-setting-full-automatic").click(function () {
|
||||||
var tf = $(this).hasClass("active");
|
var tf = $(this).hasClass("active");
|
||||||
console.log(tf);
|
|
||||||
that.ADisDB.ADisSettings.put({
|
that.ADisDB.ADisSettings.put({
|
||||||
name: "MissionsOwn-Automatic",
|
name: "MissionsOwn-Automatic",
|
||||||
value: !tf ? 'true' : 'false'
|
value: !tf ? 'true' : 'false'
|
||||||
@@ -5370,7 +5359,6 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
$("#adis-setting-sprechwunsch-automatic").click(function () {
|
$("#adis-setting-sprechwunsch-automatic").click(function () {
|
||||||
var tf = $(this).hasClass("active");
|
var tf = $(this).hasClass("active");
|
||||||
console.log(tf);
|
|
||||||
that.ADisDB.ADisSettings.put({
|
that.ADisDB.ADisSettings.put({
|
||||||
name: "Sprechwunsch-Automatic",
|
name: "Sprechwunsch-Automatic",
|
||||||
value: !tf ? 'true' : 'false'
|
value: !tf ? 'true' : 'false'
|
||||||
|
|||||||
@@ -137,7 +137,6 @@ class AutomaticDispose {
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
console.log('nonstatic', this.ADisSettings)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get Settings() {
|
get Settings() {
|
||||||
@@ -191,14 +190,12 @@ class AutomaticDispose {
|
|||||||
await that.ADisDB.ADisSprechwunsch.where({
|
await that.ADisDB.ADisSprechwunsch.where({
|
||||||
done: 'false'
|
done: 'false'
|
||||||
}).each((myWunsch) => {
|
}).each((myWunsch) => {
|
||||||
console.log('that.CollectRescueSprechwuensche: remove', myWunsch);
|
|
||||||
if ($("#vehicle_list_" + myWunsch.vehicleID).find(".building_list_fms").text() != "5") {
|
if ($("#vehicle_list_" + myWunsch.vehicleID).find(".building_list_fms").text() != "5") {
|
||||||
that.RemoveRescueSprechwunschFromQueue(myWunsch.vehicleID);
|
that.RemoveRescueSprechwunschFromQueue(myWunsch.vehicleID);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return resolve();
|
return resolve();
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
console.log('that.CollectRescueSprechwuensche: add')
|
|
||||||
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
||||||
var VehicleStatus = $(this).find(".building_list_fms").text();
|
var VehicleStatus = $(this).find(".building_list_fms").text();
|
||||||
var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id")));
|
var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id")));
|
||||||
@@ -212,19 +209,15 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
OpenNextRescueSprechwunsch() {
|
OpenNextRescueSprechwunsch() {
|
||||||
let that = this;
|
let that = this;
|
||||||
console.log('OpenNextRescueSprechwunsch on');
|
|
||||||
this.ADSettings().then((setting) => {
|
this.ADSettings().then((setting) => {
|
||||||
console.log('OpenNextRescueSprechwunsch', setting);
|
|
||||||
if (setting['Sprechwunsch-Automatic'] == 'true') {
|
if (setting['Sprechwunsch-Automatic'] == 'true') {
|
||||||
return that.ADisDB.ADisSprechwunsch.where({
|
return that.ADisDB.ADisSprechwunsch.where({
|
||||||
done: 'false'
|
done: 'false'
|
||||||
}).limit(1)
|
}).limit(1)
|
||||||
}
|
}
|
||||||
}).then((Wunsch) => {
|
}).then((Wunsch) => {
|
||||||
console.log('OpenNextRescueSprechwunsch', Wunsch);
|
|
||||||
if (Wunsch !== undefined) {
|
if (Wunsch !== undefined) {
|
||||||
Wunsch.each((myWunsch) => {
|
Wunsch.each((myWunsch) => {
|
||||||
console.table(myWunsch);
|
|
||||||
let VehicleID = myWunsch.vehicleID;
|
let VehicleID = myWunsch.vehicleID;
|
||||||
that.UpdateRescueSprechwunschToDone(VehicleID).then(() => {
|
that.UpdateRescueSprechwunschToDone(VehicleID).then(() => {
|
||||||
if ($("#adis-sprechwunsch-rescue-frame").attr("vehicle_id") == "empty") {
|
if ($("#adis-sprechwunsch-rescue-frame").attr("vehicle_id") == "empty") {
|
||||||
@@ -442,7 +435,6 @@ class AutomaticDispose {
|
|||||||
}
|
}
|
||||||
|
|
||||||
UpdatePoliceSprechwunschToDone(WunschID) {
|
UpdatePoliceSprechwunschToDone(WunschID) {
|
||||||
console.log(WunschID, typeof WunschID);
|
|
||||||
return this.ADisDB.ADisSprechwunschPolice.add({
|
return this.ADisDB.ADisSprechwunschPolice.add({
|
||||||
missionID: WunschID,
|
missionID: WunschID,
|
||||||
done: 'true'
|
done: 'true'
|
||||||
@@ -692,19 +684,16 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
$("#adis-setting-krankentransport-automatic").click(function () {
|
$("#adis-setting-krankentransport-automatic").click(function () {
|
||||||
var tf = $(this).hasClass("active");
|
var tf = $(this).hasClass("active");
|
||||||
console.log(tf);
|
|
||||||
that.ADisDB.ADisSettings.put({
|
that.ADisDB.ADisSettings.put({
|
||||||
name: "Krankentransport-Automatic",
|
name: "Krankentransport-Automatic",
|
||||||
value: !tf ? 'true' : 'false'
|
value: !tf ? 'true' : 'false'
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log(res);
|
|
||||||
that.UIUpdateSettings();
|
that.UIUpdateSettings();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#adis-setting-full-automatic").click(function () {
|
$("#adis-setting-full-automatic").click(function () {
|
||||||
var tf = $(this).hasClass("active");
|
var tf = $(this).hasClass("active");
|
||||||
console.log(tf);
|
|
||||||
that.ADisDB.ADisSettings.put({
|
that.ADisDB.ADisSettings.put({
|
||||||
name: "MissionsOwn-Automatic",
|
name: "MissionsOwn-Automatic",
|
||||||
value: !tf ? 'true' : 'false'
|
value: !tf ? 'true' : 'false'
|
||||||
@@ -715,7 +704,6 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
$("#adis-setting-sprechwunsch-automatic").click(function () {
|
$("#adis-setting-sprechwunsch-automatic").click(function () {
|
||||||
var tf = $(this).hasClass("active");
|
var tf = $(this).hasClass("active");
|
||||||
console.log(tf);
|
|
||||||
that.ADisDB.ADisSettings.put({
|
that.ADisDB.ADisSettings.put({
|
||||||
name: "Sprechwunsch-Automatic",
|
name: "Sprechwunsch-Automatic",
|
||||||
value: !tf ? 'true' : 'false'
|
value: !tf ? 'true' : 'false'
|
||||||
|
|||||||
Reference in New Issue
Block a user