Skip to content

Commit

Permalink
BiG-CZ: On list popup close, clear active styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice Rottersman committed Oct 6, 2017
1 parent 7583d7d commit 9bb0e53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mmw/js/src/core/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,13 @@ var MapView = Marionette.ItemView.extend({
}).render().el,
clickLatLng,
{ className: 'data-catalog-popover-list' });

self._leafletMap.once('popupclose', function() {
self.model.set('dataCatalogActiveResult', null);
_.forEach(intersectingResults, function(result) {
result.set('active', false);
});
});
};

// Remove all existing event listeners/popups that might be from the other catalogs
Expand Down

0 comments on commit 9bb0e53

Please sign in to comment.