Skip to content

Commit

Permalink
bug fix so zip still shows up when college toggle off
Browse files Browse the repository at this point in the history
  • Loading branch information
btskinner committed Feb 7, 2018
1 parent 876e994 commit d0f8b2c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/func_mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function renderListings(features) {
if (swToggleCollege) {
features = features.filter(function(feature) {
var cat = s[feature.properties[_id]][_cat];
return hsCats.indexOf(cat) > -1;
return nonCollegeCats.indexOf(cat) > -1;
});
}
// for each visible feature...
Expand Down
8 changes: 8 additions & 0 deletions js/objects_arrays.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@ while (idx != -1) {
hsCats.push(idx);
idx = cats.indexOf('hs_adv', idx + 1);
}

// non-college categories
var nonCollegeCats = hsCats;
var idx = cats.indexOf('community');
while (idx != -1) {
nonCollegeCats.push(idx);
idx = cats.indexOf('community', idx + 1);
}
1 change: 0 additions & 1 deletion js/school_array.js

This file was deleted.

0 comments on commit d0f8b2c

Please sign in to comment.