From e66f41ef4036be4553e6b9c03dc93d8a8cfbbe42 Mon Sep 17 00:00:00 2001 From: Jason Chen Date: Tue, 6 Mar 2018 19:58:23 -0500 Subject: [PATCH] Fix map not fading out after clicking 'List View' This was a bug from my PR that refactored the map toggle. --- app/assets/javascripts/views/restrooms/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/views/restrooms/index.js b/app/assets/javascripts/views/restrooms/index.js index 9a6681dd..53190bb6 100644 --- a/app/assets/javascripts/views/restrooms/index.js +++ b/app/assets/javascripts/views/restrooms/index.js @@ -11,7 +11,7 @@ $(function(){ if (mapShow) { mapToggle.html("Map View"); // animate - mapContainer.fadeIn(500, function() { list.fadeOut(500) }); + mapContainer.fadeOut(500, function() { list.fadeIn(500) }); } else{ mapToggle.html("List View"); // animate