From 21475dbdb104013976f8a5f9e29e134b8d10141d Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 20 Dec 2018 14:40:18 -0500 Subject: [PATCH] Add an open class to the interactive map tab that's open --- js/leaflet-area-map.js | 2 +- views/front/members/interactivemap.html | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/js/leaflet-area-map.js b/js/leaflet-area-map.js index a25ef187..9d5a34a2 100644 --- a/js/leaflet-area-map.js +++ b/js/leaflet-area-map.js @@ -41,7 +41,7 @@ var GlmMap = { jQuery.each(glm_memberCats, function(i, category_id){ // attach action to top of tab jQuery("#cat-main-open-" + category_id).click(function(){ - jQuery("#cat-main-" + category_id).slideToggle(GlmMap._catDivSpeed); + jQuery("#cat-main-" + category_id).slideToggle(GlmMap._catDivSpeed).toggleClass("open"); }); // attach action to bottom of tab jQuery("#cat-main-close-" + category_id).click(function(){ diff --git a/views/front/members/interactivemap.html b/views/front/members/interactivemap.html index 2234b54f..40311ab4 100644 --- a/views/front/members/interactivemap.html +++ b/views/front/members/interactivemap.html @@ -474,6 +474,4 @@ div#memberLocations {
- - - + \ No newline at end of file -- 2.17.1