v2 up dua8
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Mon Dec 17 2018 19:42:35 GMT+0100 (CET)*/
|
/*Generated on:Mon Dec 17 2018 19:52:23 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();
|
||||||
|
|||||||
Vendored
+9
-7
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Mon Dec 17 2018 19:42:35 GMT+0100 (CET)*/
|
/*Generated on:Mon Dec 17 2018 19:52:23 GMT+0100 (CET)*/
|
||||||
/*
|
/*
|
||||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||||
* ===============================================
|
* ===============================================
|
||||||
@@ -18724,7 +18724,7 @@ class AutomaticDispose {
|
|||||||
const runnerIframe = self.ADisSettings.runner_iframes[runnerID];
|
const runnerIframe = self.ADisSettings.runner_iframes[runnerID];
|
||||||
$('#' + runnerIframe).attr("src", '');
|
$('#' + runnerIframe).attr("src", '');
|
||||||
$('#' + runnerIframe).attr("mission_id", 'empty');
|
$('#' + runnerIframe).attr("mission_id", 'empty');
|
||||||
setTimeout(self.OpenNextMission.bind(self), 500, Runner);
|
setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateMissionsToDone(MissionID) {
|
UpdateMissionsToDone(MissionID) {
|
||||||
@@ -18769,17 +18769,17 @@ class AutomaticDispose {
|
|||||||
available: 'true',
|
available: 'true',
|
||||||
done: 'false'
|
done: 'false'
|
||||||
})
|
})
|
||||||
if (self.MyRunner != "kt") {
|
//if (self.MyRunner != "kt") {
|
||||||
coll = coll.and(function (item) {
|
coll = coll.and(function (item) {
|
||||||
return item.next_check <= Math.floor(new Date().getTime() / 1000)
|
return item.next_check <= Math.floor(new Date().getTime() / 1000)
|
||||||
});
|
});
|
||||||
}
|
//}
|
||||||
|
|
||||||
return coll.toArray()
|
return coll.toArray()
|
||||||
}
|
}
|
||||||
}).then((Wunsche) => {
|
}).then((Wunsche) => {
|
||||||
if (typeof Wunsche === "undefined") {
|
if (typeof Wunsche === "undefined") {
|
||||||
return setTimeout(self.OpenNextMission.bind(self), 500, Runner);
|
return setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
|
||||||
}
|
}
|
||||||
Wunsche.sort((a, b) => {
|
Wunsche.sort((a, b) => {
|
||||||
return a.next_check - b.next_check;
|
return a.next_check - b.next_check;
|
||||||
@@ -18867,7 +18867,9 @@ class AutomaticDispose {
|
|||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
return Wunsch.each((mywunsch) => {
|
return Wunsch.each((mywunsch) => {
|
||||||
self.MissionData = mywunsch;
|
self.MissionData = mywunsch;
|
||||||
return self.MainHandler()
|
return self.UpdateMissionsToDone(self.MissionID).then(() => {
|
||||||
|
return self.MainHandler()
|
||||||
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
//return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
//return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
||||||
@@ -18885,7 +18887,7 @@ class AutomaticDispose {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}, 1500);
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+8
-6
@@ -1064,7 +1064,7 @@ class AutomaticDispose {
|
|||||||
const runnerIframe = self.ADisSettings.runner_iframes[runnerID];
|
const runnerIframe = self.ADisSettings.runner_iframes[runnerID];
|
||||||
$('#' + runnerIframe).attr("src", '');
|
$('#' + runnerIframe).attr("src", '');
|
||||||
$('#' + runnerIframe).attr("mission_id", 'empty');
|
$('#' + runnerIframe).attr("mission_id", 'empty');
|
||||||
setTimeout(self.OpenNextMission.bind(self), 500, Runner);
|
setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateMissionsToDone(MissionID) {
|
UpdateMissionsToDone(MissionID) {
|
||||||
@@ -1109,17 +1109,17 @@ class AutomaticDispose {
|
|||||||
available: 'true',
|
available: 'true',
|
||||||
done: 'false'
|
done: 'false'
|
||||||
})
|
})
|
||||||
if (self.MyRunner != "kt") {
|
//if (self.MyRunner != "kt") {
|
||||||
coll = coll.and(function (item) {
|
coll = coll.and(function (item) {
|
||||||
return item.next_check <= Math.floor(new Date().getTime() / 1000)
|
return item.next_check <= Math.floor(new Date().getTime() / 1000)
|
||||||
});
|
});
|
||||||
}
|
//}
|
||||||
|
|
||||||
return coll.toArray()
|
return coll.toArray()
|
||||||
}
|
}
|
||||||
}).then((Wunsche) => {
|
}).then((Wunsche) => {
|
||||||
if (typeof Wunsche === "undefined") {
|
if (typeof Wunsche === "undefined") {
|
||||||
return setTimeout(self.OpenNextMission.bind(self), 500, Runner);
|
return setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
|
||||||
}
|
}
|
||||||
Wunsche.sort((a, b) => {
|
Wunsche.sort((a, b) => {
|
||||||
return a.next_check - b.next_check;
|
return a.next_check - b.next_check;
|
||||||
@@ -1207,7 +1207,9 @@ class AutomaticDispose {
|
|||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
return Wunsch.each((mywunsch) => {
|
return Wunsch.each((mywunsch) => {
|
||||||
self.MissionData = mywunsch;
|
self.MissionData = mywunsch;
|
||||||
return self.MainHandler()
|
return self.UpdateMissionsToDone(self.MissionID).then(() => {
|
||||||
|
return self.MainHandler()
|
||||||
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
//return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
//return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
||||||
@@ -1225,7 +1227,7 @@ class AutomaticDispose {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}, 1500);
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user