Commit 001518e4cda1306f6b7a219b4d57ea0eb81e1128
1 parent
18ae6db0
Exists in
staging
and in
42 other branches
Enable map view with category filter search
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/helpers/search_helper.rb
| ... | ... | @@ -50,7 +50,7 @@ module SearchHelper |
| 50 | 50 | end |
| 51 | 51 | |
| 52 | 52 | def map_search? |
| 53 | - !@query.blank? and !multiple_search? and params[:display] == 'map' | |
| 53 | + !@empty_query and !multiple_search? and params[:display] == 'map' | |
| 54 | 54 | end |
| 55 | 55 | |
| 56 | 56 | def search_page_title(title, category = nil) |
| ... | ... | @@ -107,7 +107,7 @@ module SearchHelper |
| 107 | 107 | @asset_class = asset_class(asset) |
| 108 | 108 | render(:partial => 'facets_unselect_menu') |
| 109 | 109 | end |
| 110 | - | |
| 110 | + | |
| 111 | 111 | def facet_javascript(input_id, facet, array) |
| 112 | 112 | array = [] if array.nil? |
| 113 | 113 | hintText = _('Type in an option') | ... | ... |