forked from codeforboston/finda
-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Labels
Description
The mobile results view should hide the search facets and show the list of facilities. It's not too hard to make it work this way by removing the facets from the DOM, the issue is that the desktop view needs to keep the facets around on the results page.
Removing facets from the DOM also means it's impossible to go back to the questionnaire (currently we solve this by completely reloading the page to start the questionnaire over).
How to split logic for mobile v desktop?
When rendering the results page, jQuery calls show() on the facets which overrides media queries setting mobile facets to display:none. Perhaps after show() we can attach a class to the facets that has a media query that hides mobile? Not sure if it's an order of operations issue or what. Any thoughts welcome.