fix onpopstate call when the responsive switch is used
This commit is contained in:
parent
10ebf99f30
commit
77b6bb868c
1 changed files with 4 additions and 2 deletions
|
@ -27,10 +27,12 @@ editor = {
|
|||
|
||||
L.control.scale({imperial: false}).addTo(editor.map);
|
||||
|
||||
$('#show_map').click(function() {
|
||||
$('#show_map').click(function(e) {
|
||||
e.preventDefault();
|
||||
$('body').addClass('show-map');
|
||||
});
|
||||
$('#show_details').click(function() {
|
||||
$('#show_details').click(function(e) {
|
||||
e.preventDefault();
|
||||
$('body').removeClass('show-map');
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue