equal
deleted
inserted
replaced
18 color: 'rgba(113,132,141,.2)', |
18 color: 'rgba(113,132,141,.2)', |
19 |
19 |
20 filter: Ember.inject.service(), |
20 filter: Ember.inject.service(), |
21 locationObserver: Ember.observer('filter.location', function() { |
21 locationObserver: Ember.observer('filter.location', function() { |
22 if(!this.get('filter').get('location')) { |
22 if(!this.get('filter').get('location')) { |
23 this.get('map').selectObject(); |
23 this.sendAction('setLocation', 'world'); |
24 } |
24 } |
25 }), |
25 }), |
26 |
26 |
27 geostats: [], |
27 geostats: [], |
28 observerGeostats: Ember.observer('geostats', function() { |
28 observerGeostats: Ember.observer('geostats', function() { |
182 this.get('filter').set('location', event.mapObject.title); |
182 this.get('filter').set('location', event.mapObject.title); |
183 }, |
183 }, |
184 |
184 |
185 homeButtonClicked: function(event) { |
185 homeButtonClicked: function(event) { |
186 if(event.chart.dataProvider.map !== 'continentsLow') { |
186 if(event.chart.dataProvider.map !== 'continentsLow') { |
187 this.sendAction('setLocation', 'world'); |
187 this.get('filter').set('location', null); |
188 } |
188 } |
189 } |
189 } |
190 |
190 |
191 }); |
191 }); |