X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2ef2d7c876168d6beb606b655470f48ffabc8841..370f4bf562845a864e425f25bb8279afcb7016c3:/app/assets/javascripts/edit.js?ds=sidebyside diff --git a/app/assets/javascripts/edit.js b/app/assets/javascripts/edit.js index c2129e20c..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("margin-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("margin-top", "30px"); - if ($("html").attr("dir") == "ltr") { - $("#content").css("margin-left", "185px"); - } else { - $("#content").css("margin-right", "185px"); - } + $("#content").removeClass("maximised"); handleResize(); }