diff --git a/html/dbloader.js b/html/dbloader.js index a957722..ced970c 100644 --- a/html/dbloader.js +++ b/html/dbloader.js @@ -96,10 +96,10 @@ function lookupIcaoAircraftType(aircraftData, defer) { if (typeDesignator in _aircraft_type_cache) { let typeData = _aircraft_type_cache[typeDesignator]; if (typeData.desc != null && typeData.desc.length == 3) { - aircraftData[3] = typeData.desc; + aircraftData[5] = typeData.desc; } if (typeData.wtc != undefined && aircraftData.wtc === undefined) { - aircraftData[4] = typeData.wtc; + aircraftData[6] = typeData.wtc; } } } diff --git a/html/index.html b/html/index.html index 7b2d897..7efb57c 100644 --- a/html/index.html +++ b/html/index.html @@ -182,6 +182,16 @@ + + +
+ Type: +
+
+ +
+ +
diff --git a/html/planeObject.js b/html/planeObject.js index 146b3eb..0f5da1d 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -109,6 +109,7 @@ function PlaneObject(icao) { this.registration = registration_from_hexid(this.icao); this.icaoType = null; this.typeDescription = null; + this.typeLong = null; this.wtc = null; @@ -1975,12 +1976,16 @@ PlaneObject.prototype.getAircraftData = function() { this.icaoTypeCache = this.icaoType; } - if (data[3]) { - this.typeDescription = data[3]; + if (data[5]) { + this.typeDescription = data[5]; } - if (data[4]) { - this.wtc = data[4]; + if (data[6]) { + this.wtc = data[6]; + } + + if (data[3]) { + this.typeLong = data[3]; } if (data[2]) { diff --git a/html/script.js b/html/script.js index 4592065..46a9dc7 100644 --- a/html/script.js +++ b/html/script.js @@ -1799,6 +1799,11 @@ function refreshSelected() { else $('#selected_typedesc').text("n/a"); + if (selected.typeLong) + $('#selected_typelong').text(selected.typeLong); + else + $('#selected_typelong').text("n/a"); + if (showPictures && selected.icaoType){ let new_html = ""; if (new_html != selectedPhotoCache) {