X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/00375024263970a43ea7d39e3c65dfd0f32e8869..2b42fd102a55f7af41b8e19dfcb7271abb72ed1d:/app/assets/javascripts/edit.js?ds=sidebyside diff --git a/app/assets/javascripts/edit.js b/app/assets/javascripts/edit.js index 0b2b329b5..8800195b3 100644 --- a/app/assets/javascripts/edit.js +++ b/app/assets/javascripts/edit.js @@ -1,43 +1,7 @@ function maximiseMap() { - $("#left").hide(); - $("#greeting").hide(); - $("#tabnav").hide(); - - $("#content").css("top", "0px"); - if ($("html").attr("dir") == "ltr") { - $("#content").css("left", "0px"); - } else { - $("#content").css("right", "0px"); - } - - handleResize(); + $("#content").addClass("maximised"); } function minimiseMap() { - $("#left").show(); - $("#greeting").show(); - $("#tabnav").show(); - - $("#content").css("top", "30px"); - if ($("html").attr("dir") == "ltr") { - $("#content").css("left", "185px"); - } else { - $("#content").css("right", "185px"); - } - - handleResize(); + $("#content").removeClass("maximised"); } - -$(document).ready(function () { - $(window).resize(handleResize); - handleResize(); - - $("#search_form").submit(function () { - $("#sidebar_title").html(I18n.t('site.sidebar.search_results')); - $("#sidebar_content").load($(this).attr("action"), { - query: $("#query").val() - }, openSidebar); - - return false; - }); -});