# HG changeset patch # User Chloe Laisne # Date 1474804931 -7200 # Node ID ca990333f838df83beec83de752b42fa5d9bf75b # Parent 7cae80e5748c7909e8d1184c1c3dcb815958eec0 Unselect filter when clicking home button + Go back to world map level when removing filter diff -r 7cae80e5748c -r ca990333f838 cms/app-client/app/components/visu-carto.js --- a/cms/app-client/app/components/visu-carto.js Sun Sep 25 13:45:54 2016 +0200 +++ b/cms/app-client/app/components/visu-carto.js Sun Sep 25 14:02:11 2016 +0200 @@ -20,7 +20,7 @@ filter: Ember.inject.service(), locationObserver: Ember.observer('filter.location', function() { if(!this.get('filter').get('location')) { - this.get('map').selectObject(); + this.sendAction('setLocation', 'world'); } }), @@ -184,7 +184,7 @@ homeButtonClicked: function(event) { if(event.chart.dataProvider.map !== 'continentsLow') { - this.sendAction('setLocation', 'world'); + this.get('filter').set('location', null); } }