v30495092 fix attribute href
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Fri Jan 11 2019 02:21:48 GMT+0100 (CET)*/
|
/*Generated on:Fri Jan 11 2019 02:33:00 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
+15
-7
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Fri Jan 11 2019 02:21:48 GMT+0100 (CET)*/
|
/*Generated on:Fri Jan 11 2019 02:33:00 GMT+0100 (CET)*/
|
||||||
/*
|
/*
|
||||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||||
* ===============================================
|
* ===============================================
|
||||||
@@ -18819,27 +18819,35 @@ class AutomaticDispose {
|
|||||||
CollectInvolvedVehicles() {
|
CollectInvolvedVehicles() {
|
||||||
let self = this;
|
let self = this;
|
||||||
$("#mission_vehicle_driving tbody").find("tr").each(function (_, elem) {
|
$("#mission_vehicle_driving tbody").find("tr").each(function (_, elem) {
|
||||||
var VehicleID = $(elem).find("a").first().attr("href").substr($(elem).find("a").first().attr("href").lastIndexOf("/") + 1);
|
var f = $(elem).find("a").first()
|
||||||
var VehicleName = $(elem).find("a").first().text();
|
var attr = f.attr("href")
|
||||||
var VehicleType = $(elem).find("a").first().attr("vehicle_type_id");
|
if (typeof attr !== 'undefined' && attr !== false) {
|
||||||
|
var VehicleID = f.attr("href").substr(f.attr("href").lastIndexOf("/") + 1);
|
||||||
|
var VehicleName = f.text();
|
||||||
|
var VehicleType = f.attr("vehicle_type_id");
|
||||||
|
|
||||||
self.Vehicles[VehicleID] = {
|
self.Vehicles[VehicleID] = {
|
||||||
"id": VehicleID,
|
"id": VehicleID,
|
||||||
"name": VehicleName,
|
"name": VehicleName,
|
||||||
"type": VehicleType
|
"type": VehicleType
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#mission_vehicle_at_mission tbody").find("tr").each(function (_, elem) {
|
$("#mission_vehicle_at_mission tbody").find("tr").each(function (_, elem) {
|
||||||
var VehicleID = $(elem).find("a").first().attr("href").substr($(elem).find("a").first().attr("href").lastIndexOf("/") + 1);
|
var f = $(elem).find("a").first()
|
||||||
var VehicleName = $(elem).find("a").first().text();
|
var attr = f.attr("href")
|
||||||
var VehicleType = $(elem).find("a").first().attr("vehicle_type_id");
|
if (typeof attr !== 'undefined' && attr !== false) {
|
||||||
|
var VehicleID = f.attr("href").substr(f.attr("href").lastIndexOf("/") + 1);
|
||||||
|
var VehicleName = f.text();
|
||||||
|
var VehicleType = f.attr("vehicle_type_id");
|
||||||
|
|
||||||
self.Vehicles[VehicleID] = {
|
self.Vehicles[VehicleID] = {
|
||||||
"id": VehicleID,
|
"id": VehicleID,
|
||||||
"name": VehicleName,
|
"name": VehicleName,
|
||||||
"type": VehicleType
|
"type": VehicleType
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return self.Vehicles;
|
return self.Vehicles;
|
||||||
|
|||||||
+14
-6
@@ -1465,27 +1465,35 @@ class AutomaticDispose {
|
|||||||
CollectInvolvedVehicles() {
|
CollectInvolvedVehicles() {
|
||||||
let self = this;
|
let self = this;
|
||||||
$("#mission_vehicle_driving tbody").find("tr").each(function (_, elem) {
|
$("#mission_vehicle_driving tbody").find("tr").each(function (_, elem) {
|
||||||
var VehicleID = $(elem).find("a").first().attr("href").substr($(elem).find("a").first().attr("href").lastIndexOf("/") + 1);
|
var f = $(elem).find("a").first()
|
||||||
var VehicleName = $(elem).find("a").first().text();
|
var attr = f.attr("href")
|
||||||
var VehicleType = $(elem).find("a").first().attr("vehicle_type_id");
|
if (typeof attr !== 'undefined' && attr !== false) {
|
||||||
|
var VehicleID = f.attr("href").substr(f.attr("href").lastIndexOf("/") + 1);
|
||||||
|
var VehicleName = f.text();
|
||||||
|
var VehicleType = f.attr("vehicle_type_id");
|
||||||
|
|
||||||
self.Vehicles[VehicleID] = {
|
self.Vehicles[VehicleID] = {
|
||||||
"id": VehicleID,
|
"id": VehicleID,
|
||||||
"name": VehicleName,
|
"name": VehicleName,
|
||||||
"type": VehicleType
|
"type": VehicleType
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#mission_vehicle_at_mission tbody").find("tr").each(function (_, elem) {
|
$("#mission_vehicle_at_mission tbody").find("tr").each(function (_, elem) {
|
||||||
var VehicleID = $(elem).find("a").first().attr("href").substr($(elem).find("a").first().attr("href").lastIndexOf("/") + 1);
|
var f = $(elem).find("a").first()
|
||||||
var VehicleName = $(elem).find("a").first().text();
|
var attr = f.attr("href")
|
||||||
var VehicleType = $(elem).find("a").first().attr("vehicle_type_id");
|
if (typeof attr !== 'undefined' && attr !== false) {
|
||||||
|
var VehicleID = f.attr("href").substr(f.attr("href").lastIndexOf("/") + 1);
|
||||||
|
var VehicleName = f.text();
|
||||||
|
var VehicleType = f.attr("vehicle_type_id");
|
||||||
|
|
||||||
self.Vehicles[VehicleID] = {
|
self.Vehicles[VehicleID] = {
|
||||||
"id": VehicleID,
|
"id": VehicleID,
|
||||||
"name": VehicleName,
|
"name": VehicleName,
|
||||||
"type": VehicleType
|
"type": VehicleType
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return self.Vehicles;
|
return self.Vehicles;
|
||||||
|
|||||||
Reference in New Issue
Block a user