]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/edit.js
Restore attribution on main map
[rails.git] / app / assets / javascripts / edit.js
index 7eaa24e9813ce97fab79958364ab518297ed0070..f13e2d48130d6c50396cd7d8c012d8c28c23692b 100644 (file)
@@ -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();
 }