Add an open class to the interactive map tab that's open
authorLaury GvR <laury@gaslightmedia.com>
Thu, 20 Dec 2018 19:40:18 +0000 (14:40 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 20 Dec 2018 19:40:18 +0000 (14:40 -0500)
js/leaflet-area-map.js
views/front/members/interactivemap.html

index a25ef18..9d5a34a 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);
+                jQuery("#cat-main-" + category_id).slideToggle(GlmMap._catDivSpeed).toggleClass("open");
             });
              // attach action to bottom of tab
             jQuery("#cat-main-close-" + category_id).click(function(){
index 2234b54..40311ab 100644 (file)
@@ -474,6 +474,4 @@ div#memberLocations {
        <div id="debugGlm">
 
        </div>
-</div>
-
-
+</div>
\ No newline at end of file