Apply open class to interactive map's categoryBox, and adjust style
authorLaury GvR <laury@gaslightmedia.com>
Thu, 20 Dec 2018 19:44:17 +0000 (14:44 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 20 Dec 2018 19:44:17 +0000 (14:44 -0500)
js/leaflet-area-map.js
views/front/members/interactivemap.html

index 9d5a34a..d4d8d62 100644 (file)
@@ -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(){
index 40311ab..4235c83 100644 (file)
@@ -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;