X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5e7b7a420a042245f8adecb97679e46e5eddba05..ad10390663f5c27d4ac9eea1ff35a5a6e2ae4622:/app/assets/javascripts/edit.js diff --git a/app/assets/javascripts/edit.js b/app/assets/javascripts/edit.js index 7eaa24e98..f13e2d481 100644 --- a/app/assets/javascripts/edit.js +++ b/app/assets/javascripts/edit.js @@ -1,29 +1,11 @@ function maximiseMap() { - $("#left").hide(); - $("#greeting").hide(); - $("#tabnav").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(); - $("#greeting").show(); - $("#tabnav").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(); }