Skip to content

Commit

Permalink
Fixed URL sourced search results.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalczyk committed Sep 17, 2013
1 parent a7e565d commit 37a6d85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/js/mol.map.boot.js
Expand Up @@ -107,8 +107,9 @@ mol.modules.map.boot = function(mol) {
*/
loadLayers: function(layers) {
if (Object.keys(layers).length <= this.maxLayers) {


this.bus.fireEvent(
new mol.bus.Event('add-layers', {layers: layers})
);
} else if (this.term != null) {
this.bus.fireEvent(
new mol.bus.Event('search', {term: this.term})
Expand Down
5 changes: 3 additions & 2 deletions app/static/js/mol.js
Expand Up @@ -8765,8 +8765,9 @@ mol.modules.map.boot = function(mol) {
*/
loadLayers: function(layers) {
if (Object.keys(layers).length <= this.maxLayers) {


this.bus.fireEvent(
new mol.bus.Event('add-layers', {layers: layers})
);
} else if (this.term != null) {
this.bus.fireEvent(
new mol.bus.Event('search', {term: this.term})
Expand Down

0 comments on commit 37a6d85

Please sign in to comment.