From d8d97cef12b6550d94af686e0e5d48c448c412cf Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 29 Aug 2016 16:09:35 -0400 Subject: [PATCH] fixing issue where the default image and content for the community map dropdown would disappear after scrolling out of the map's hover region --- parts/community-map.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.17.1