Support using iD on Internet Explorer 11 and above

This commit is contained in:
Bryan Housel 2015-12-10 18:34:18 -08:00
parent e5c4822d2c
commit bd4de52c98
2 changed files with 2 additions and 6 deletions

View file

@ -435,10 +435,6 @@ class ApplicationController < ActionController::Base
DEFAULT_EDITOR
end
if request.env["HTTP_USER_AGENT"] =~ /MSIE|Trident/ && editor == "id"
editor = "potlatch2"
end
editor
end

View file

@ -10,9 +10,9 @@
<body>
<div id='id-container'></div>
<script>
if (typeof iD == 'undefined') {
if (typeof iD == 'undefined' || !iD.detect().support) {
document.getElementById('id-container').innerHTML = 'This editor is supported ' +
'in Firefox, Chrome, Safari, Opera, and Internet Explorer 9 and above. ' +
'in Firefox, Chrome, Safari, Opera, and Internet Explorer 11 and above. ' +
'Please upgrade your browser or use Potlatch 2 to edit the map.';
document.getElementById('id-container').className = 'unsupported';
} else {