Change button color on filter set

This commit is contained in:
eric1tran 2021-02-10 20:40:57 +00:00
parent 33bb2d929b
commit d8d5f2a117
1 changed files with 3 additions and 0 deletions

View File

@ -2244,6 +2244,9 @@ function updatePlaneFilter() {
var aircraftIdentFilterSet = (PlaneFilter.aircraftIdent == undefined) ? 0 : 1;
ActiveFilterCount = altitudeFilterSet + speedFilterSet + aircraftTypeFilterSet + aircraftIdentFilterSet;
var filter = document.getElementById('filter_button');
filter.style.backgroundColor = (ActiveFilterCount > 0) ? "Lime" : "#FEBC11";
}
function refreshDataSourceFilters () {