// close pop up div when clicking anywhere but that div
jQuery(document).mouseup(function (e)
{
- var container = $(.mobile-map-site-details);
+ var container = jQuery(".mobile-map-site-details");
if (!container.is(e.target) // if the target of the click isn't the container...
&& container.has(e.target).length === 0) // ... nor a descendant of the container
{
- container.hide();
+ container.slideToggle("slow", function () {
+
+ });
}
});