]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/edit.html.erb
Refactor bounding box code
[rails.git] / app / views / site / edit.html.erb
index fdbfa5428f1616278585b9b9b464227ec363c7ac..37531a4a7782261fdf48e4408ca0e919a17a8ccd 100644 (file)
@@ -22,7 +22,7 @@
 
 <%= render :partial => preferred_editor %>
 
-<script type="text/javascript" defer="defer">
+<script type="text/javascript">
   function maximiseMap() {
     $("left").style.display = "none";
     $("greeting").style.display = "none";
@@ -53,9 +53,8 @@
     handleResize();
   }
 
-  handleResize();
+  document.observe("dom:loaded", handleResize);
 
-  Event.observe(window, "load", handleResize);
   Event.observe(window, "resize", handleResize);
 </script>
 <% end %>