Skip to content

Commit

Permalink
Merge pull request #561 from SEED-platform/revert-554-553-fix-selecte…
Browse files Browse the repository at this point in the history
…d-buildings

Revert "Issue with selected_buildings getting out of sync with user selections"
  • Loading branch information
mmclark committed Dec 14, 2015
2 parents d1f595b + 424abf4 commit 59d3e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seed/static/seed/js/services/search_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ angular.module('BE.seed.service.search', [])
* should **always** be called before load_state_from_selected_buildings.
*/
search_service.select_or_deselect_all_buildings = function() {
this.selected_buildings = [];
for (var i = 0; i < this.buildings.length; i++) {
this.buildings[i].checked = this.select_all_checkbox;
}
Expand All @@ -335,6 +334,7 @@ angular.module('BE.seed.service.search', [])
* checked
*/
search_service.select_all_changed = function(){
this.selected_buildings = [];
this.select_or_deselect_all_buildings();
};

Expand Down

0 comments on commit 59d3e86

Please sign in to comment.