fix onpopstate call when the responsive switch is used

This commit is contained in:
Laura Klünder 2017-05-16 16:33:42 +02:00
parent 10ebf99f30
commit 77b6bb868c

View file

@ -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');
});