X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6b86b716d15c901ea0c47cac6b4f0fecce035371..bab796bc7eb0b44eeb15d6fee567440647bc57e0:/app/assets/javascripts/edit.js diff --git a/app/assets/javascripts/edit.js b/app/assets/javascripts/edit.js index 30823d49e..f13e2d481 100644 --- a/app/assets/javascripts/edit.js +++ b/app/assets/javascripts/edit.js @@ -1,27 +1,11 @@ function maximiseMap() { - $("#left").hide(); - $("#top-bar").hide(); - - $("#content").css("top", "0px"); - if ($("html").attr("dir") == "ltr") { - $("#content").css("margin-left", "0px"); - } else { - $("#content").css("margin-right", "0px"); - } + $("#content").addClass("maximised"); handleResize(); } function minimiseMap() { - $("#left").show(); - $("#top-bar").show(); - - $("#content").css("top", "30px"); - if ($("html").attr("dir") == "ltr") { - $("#content").css("margin-left", "185px"); - } else { - $("#content").css("margin-right", "185px"); - } + $("#content").removeClass("maximised"); handleResize(); }