]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Use full page width when editing with iD
[rails.git] / app / controllers / site_controller.rb
index b1239d0daa5f16e493e46a2568144d3fbd4dbf07..b2212645c2761d764e03287a23b8dc6f79af0ec1 100644 (file)
@@ -42,7 +42,7 @@ class SiteController < ApplicationController
 
     new_params[:controller] = 'site'
     new_params[:action] = 'index'
-    new_params[:anchor] = "#{zoom}/#{lat}/#{lon}"
+    new_params[:anchor] = "map=#{zoom}/#{lat}/#{lon}"
 
     redirect_to new_params
   end
@@ -59,6 +59,8 @@ class SiteController < ApplicationController
       return
     end
 
+    @extra_body_class = "site-edit-#{editor}"
+
     if params[:node]
       bbox = Node.find(params[:node]).bbox.to_unscaled
       @lat = bbox.centre_lat