Make aircraft type filter case insensitive
This commit is contained in:
parent
f4f2f3ddad
commit
0fddde5126
|
|
@ -110,8 +110,8 @@ function PlaneObject(icao) {
|
||||||
|
|
||||||
PlaneObject.prototype.isFiltered = function() {
|
PlaneObject.prototype.isFiltered = function() {
|
||||||
// aircraft type filter
|
// aircraft type filter
|
||||||
if (this.filter.aircraftTypeCode && this.icaotype !== null) {
|
if (this.filter.aircraftTypeCode) {
|
||||||
if (typeof this.icaotype === 'string' && this.icaotype !== this.filter.aircraftTypeCode) {
|
if (this.icaotype === null || (typeof this.icaotype === 'string' && this.icaotype.toUpperCase() !== this.filter.aircraftTypeCode.toUpperCase())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue