js/leaflet: Fire opening, closing and content events