fix VehicleType undefined
This commit is contained in:
@@ -1489,11 +1489,12 @@ class AutomaticDispose {
|
||||
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] = {
|
||||
"id": VehicleID,
|
||||
"name": VehicleName,
|
||||
"type": VehicleType
|
||||
if (typeof VehicleType !== 'undefined') {
|
||||
self.Vehicles[VehicleID] = {
|
||||
"id": VehicleID,
|
||||
"name": VehicleName,
|
||||
"type": VehicleType
|
||||
}
|
||||
}
|
||||
|
||||
} catch (e) {}
|
||||
@@ -1505,11 +1506,12 @@ class AutomaticDispose {
|
||||
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] = {
|
||||
"id": VehicleID,
|
||||
"name": VehicleName,
|
||||
"type": VehicleType
|
||||
if (typeof VehicleType !== 'undefined') {
|
||||
self.Vehicles[VehicleID] = {
|
||||
"id": VehicleID,
|
||||
"name": VehicleName,
|
||||
"type": VehicleType
|
||||
}
|
||||
}
|
||||
|
||||
} catch (e) {}
|
||||
|
||||
Reference in New Issue
Block a user