reset location details when hiding them

This commit is contained in:
Laura Klünder 2017-11-22 19:12:51 +01:00
parent ec18cc7365
commit d757c71d78

View file

@ -103,6 +103,8 @@ c3nav = {
if (view === 'location' && state.details) {
this.load_location_details(state.destination);
} else {
$('#location-details').removeAttr('data-id');
}
$('main').attr('data-view', view).toggleClass('show-details', state.details);