From: Laury GvR Date: Thu, 20 Dec 2018 19:40:18 +0000 (-0500) Subject: Add an open class to the interactive map tab that's open X-Git-Tag: v2.11.0^2~32 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=21475dbdb104013976f8a5f9e29e134b8d10141d;p=WP-Plugins%2Fglm-member-db.git Add an open class to the interactive map tab that's open --- 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