v2 remove log
This commit is contained in:
@@ -137,7 +137,6 @@ class AutomaticDispose {
|
||||
}
|
||||
|
||||
});
|
||||
console.log('nonstatic', this.ADisSettings)
|
||||
}
|
||||
|
||||
get Settings() {
|
||||
@@ -191,14 +190,12 @@ class AutomaticDispose {
|
||||
await that.ADisDB.ADisSprechwunsch.where({
|
||||
done: 'false'
|
||||
}).each((myWunsch) => {
|
||||
console.log('that.CollectRescueSprechwuensche: remove', myWunsch);
|
||||
if ($("#vehicle_list_" + myWunsch.vehicleID).find(".building_list_fms").text() != "5") {
|
||||
that.RemoveRescueSprechwunschFromQueue(myWunsch.vehicleID);
|
||||
}
|
||||
})
|
||||
return resolve();
|
||||
}).then(() => {
|
||||
console.log('that.CollectRescueSprechwuensche: add')
|
||||
$("#building_list").find(".building_list_vehicle_element").each(function () {
|
||||
var VehicleStatus = $(this).find(".building_list_fms").text();
|
||||
var VehicleType = Number(parseInt($(this).find("a").attr("vehicle_type_id")));
|
||||
@@ -212,19 +209,15 @@ class AutomaticDispose {
|
||||
|
||||
OpenNextRescueSprechwunsch() {
|
||||
let that = this;
|
||||
console.log('OpenNextRescueSprechwunsch on');
|
||||
this.ADSettings().then((setting) => {
|
||||
console.log('OpenNextRescueSprechwunsch', setting);
|
||||
if (setting['Sprechwunsch-Automatic'] == 'true') {
|
||||
return that.ADisDB.ADisSprechwunsch.where({
|
||||
done: 'false'
|
||||
}).limit(1)
|
||||
}
|
||||
}).then((Wunsch) => {
|
||||
console.log('OpenNextRescueSprechwunsch', Wunsch);
|
||||
if (Wunsch !== undefined) {
|
||||
Wunsch.each((myWunsch) => {
|
||||
console.table(myWunsch);
|
||||
let VehicleID = myWunsch.vehicleID;
|
||||
that.UpdateRescueSprechwunschToDone(VehicleID).then(() => {
|
||||
if ($("#adis-sprechwunsch-rescue-frame").attr("vehicle_id") == "empty") {
|
||||
@@ -442,7 +435,6 @@ class AutomaticDispose {
|
||||
}
|
||||
|
||||
UpdatePoliceSprechwunschToDone(WunschID) {
|
||||
console.log(WunschID, typeof WunschID);
|
||||
return this.ADisDB.ADisSprechwunschPolice.add({
|
||||
missionID: WunschID,
|
||||
done: 'true'
|
||||
@@ -692,19 +684,16 @@ class AutomaticDispose {
|
||||
|
||||
$("#adis-setting-krankentransport-automatic").click(function () {
|
||||
var tf = $(this).hasClass("active");
|
||||
console.log(tf);
|
||||
that.ADisDB.ADisSettings.put({
|
||||
name: "Krankentransport-Automatic",
|
||||
value: !tf ? 'true' : 'false'
|
||||
}).then((res) => {
|
||||
console.log(res);
|
||||
that.UIUpdateSettings();
|
||||
});
|
||||
});
|
||||
|
||||
$("#adis-setting-full-automatic").click(function () {
|
||||
var tf = $(this).hasClass("active");
|
||||
console.log(tf);
|
||||
that.ADisDB.ADisSettings.put({
|
||||
name: "MissionsOwn-Automatic",
|
||||
value: !tf ? 'true' : 'false'
|
||||
@@ -715,7 +704,6 @@ class AutomaticDispose {
|
||||
|
||||
$("#adis-setting-sprechwunsch-automatic").click(function () {
|
||||
var tf = $(this).hasClass("active");
|
||||
console.log(tf);
|
||||
that.ADisDB.ADisSettings.put({
|
||||
name: "Sprechwunsch-Automatic",
|
||||
value: !tf ? 'true' : 'false'
|
||||
|
||||
Reference in New Issue
Block a user