From: Anthony Talarico Date: Mon, 29 Aug 2016 20:09:35 +0000 (-0400) Subject: fixing issue where the default image and content for the community map dropdown would... X-Git-Tag: v1.0.0^2~63 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d8d97cef12b6550d94af686e0e5d48c448c412cf;p=WP-Themes%2Fpetoskeyarea.git fixing issue where the default image and content for the community map dropdown would disappear after scrolling out of the map's hover region --- diff --git a/parts/community-map.php b/parts/community-map.php index 40c66a0..a1455f6 100644 --- a/parts/community-map.php +++ b/parts/community-map.php @@ -7,8 +7,9 @@ 'dropdown' ] ); ?>
- - + + + post_content),0, 300) . "..."; ?> @@ -83,6 +84,7 @@ foreach ($nav_posts as $p){ // set the default data next to the dropdown community map function set_default_data(){ + regionData.find(image_container).css("display", "inline-block"); regionData.find(page_title).html('post_title; ?>'); regionData.find(image_container).css("height","175px").css("width", "300px").css("background", "url(' ')no-repeat center center").css("background-position", "cover"); regionData.find(page_content).html(default_content); @@ -93,6 +95,7 @@ foreach ($nav_posts as $p){ }); $(community_link).find(".dropdown").mouseleave( function () { set_default_data(); + console.log("leave"); }); // hover effects and data collection