X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/44629832dd0207d7b0f50b93f1d00b4373dd4d49..eab2eeaa47b2aa8c7f52371f9bfdd60711a41fb6:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 67e25c6a7..3830df88b 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -419,7 +419,7 @@ class ApplicationController < ActionController::Base end def map_layout - request.xhr? ? false : 'map' + request.xhr? ? 'xhr' : 'map' end def preferred_editor @@ -431,7 +431,7 @@ class ApplicationController < ActionController::Base DEFAULT_EDITOR end - if request.env['HTTP_USER_AGENT'] =~ /MSIE/ and editor == 'id' + if request.env['HTTP_USER_AGENT'] =~ /MSIE|Trident/ and editor == 'id' editor = 'potlatch2' end