X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/44629832dd0207d7b0f50b93f1d00b4373dd4d49..dedd87da28b291db044318c1c114df8266b6c181:/app/controllers/application_controller.rb?ds=sidebyside 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