reset location details when hiding them
This commit is contained in:
parent
ec18cc7365
commit
d757c71d78
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue