From: Laury GvR Date: Thu, 20 Dec 2018 19:44:17 +0000 (-0500) Subject: Apply open class to interactive map's categoryBox, and adjust style X-Git-Tag: v2.11.0^2~31 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=cb183c58c19517b83f270548a3115677426da5da;p=WP-Plugins%2Fglm-member-db.git Apply open class to interactive map's categoryBox, and adjust style --- diff --git a/js/leaflet-area-map.js b/js/leaflet-area-map.js index 9d5a34a2..d4d8d620 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).toggleClass("open"); + jQuery("#cat-main-" + category_id).slideToggle(GlmMap._catDivSpeed).parent().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 40311ab4..4235c837 100644 --- a/views/front/members/interactivemap.html +++ b/views/front/members/interactivemap.html @@ -358,6 +358,9 @@ ul#memberCategoryBox li.categoryBox { width: 14.1%; /*width: auto;*/ } +ul#memberCategoryBox li.categoryBox.open .catName { + background: #555555; +} div.catName { background: #333333; border: 0;