Make popup stay open if unit is on details view

The leaflet popup is painful to work with, which makes it hard to
have popups both on mouseover and on clicks behaving differently.
This commit allows the details view popup to remain open while
other popups keep appearing on mouseover. However, the details popup
closes down on map click, even if the details view reamains open.