From cb183c58c19517b83f270548a3115677426da5da Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 20 Dec 2018 14:44:17 -0500 Subject: [PATCH] Apply open class to interactive map's categoryBox, and adjust style --- js/leaflet-area-map.js | 2 +- views/front/members/interactivemap.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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; -- 2.17.1