]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Missed a couple close buttons
[rails.git] / app / controllers / application_controller.rb
index 12cdb15d4ebbc85c19bdcc353df7900044ec0427..97ab5abfc397036304e6e3f73311f80dea2ffa84 100644 (file)
@@ -422,6 +422,10 @@ class ApplicationController < ActionController::Base
     request.body.rewind
   end
 
+  def map_layout
+    request.xhr? ? false : 'map'
+  end
+
   def preferred_editor
     editor = if params[:editor]
       params[:editor]