From: Laury GvR Date: Thu, 20 Dec 2018 19:50:41 +0000 (-0500) Subject: Interactive map category block now also loses 'open' class when 'Close' button is... X-Git-Tag: v2.11.0^2~30 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=959fc5fe72a689356ac7181181a00d454a130b93;p=WP-Plugins%2Fglm-member-db.git Interactive map category block now also loses 'open' class when 'Close' button is pressed --- diff --git a/js/leaflet-area-map.js b/js/leaflet-area-map.js index d4d8d620..3b7abdbe 100644 --- a/js/leaflet-area-map.js +++ b/js/leaflet-area-map.js @@ -45,7 +45,7 @@ var GlmMap = { }); // attach action to bottom of tab jQuery("#cat-main-close-" + category_id).click(function(){ - jQuery("#cat-main-" + category_id).slideUp(GlmMap._catDivSpeed); + jQuery("#cat-main-" + category_id).slideUp(GlmMap._catDivSpeed).parent().toggleClass("open"); }); }); jQuery("#memLocHdr").click(function (){