From: John Firebaugh Date: Thu, 14 Nov 2013 18:33:32 +0000 (-0800) Subject: Drop pngfix.js X-Git-Tag: live~5247 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/a62141ce7f745fa67b5f04f216f5b47f78c10e78 Drop pngfix.js Don't need to support IE 6 anymore (<0.2% of users). --- diff --git a/app/assets/javascripts/pngfix.js b/app/assets/javascripts/pngfix.js deleted file mode 100644 index e6ca5d6f7..000000000 --- a/app/assets/javascripts/pngfix.js +++ /dev/null @@ -1,25 +0,0 @@ -function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher. -{ - for(var i=0; i 0 && !img.id.match(/^OpenLayers/)) - { - var imgID = (img.id) ? "id='" + img.id + "' " : "" - var imgClass = (img.className) ? "class='" + img.className + "' " : "" - var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " - var imgStyle = "display:inline-block;" + img.style.cssText - if (img.align == "left") imgStyle = "float:left;" + imgStyle - if (img.align == "right") imgStyle = "float:right;" + imgStyle - if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle - var strNewHTML = "" - img.outerHTML = strNewHTML - i = i-1 - } - } -} -window.attachEvent("onload", correctPNG); diff --git a/app/views/layouts/_head.html.erb b/app/views/layouts/_head.html.erb index 2649354f5..93b48c315 100644 --- a/app/views/layouts/_head.html.erb +++ b/app/views/layouts/_head.html.erb @@ -2,7 +2,6 @@ <%= javascript_include_tag "application" %> - <%= stylesheet_link_tag "small-#{dir}", :media => "only screen and (max-width:641px)" %> <%= stylesheet_link_tag "large-#{dir}", :media => "screen and (min-width: 642px)" %> <%= stylesheet_link_tag "print-#{dir}", :media => "print" %> diff --git a/config/environments/production.rb b/config/environments/production.rb index 3557d8d8b..47358b387 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -70,7 +70,7 @@ OpenStreetMap::Application.configure do # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in app/assets folder are already added. config.assets.precompile += %w( index.js edit.js browse.js changeset.js welcome.js ) - config.assets.precompile += %w( user.js diary_entry.js pngfix.js swfobject.js ) + config.assets.precompile += %w( user.js diary_entry.js swfobject.js ) config.assets.precompile += %w( large-ltr.css small-ltr.css print-ltr.css ) config.assets.precompile += %w( large-rtl.css small-rtl.css print-rtl.css ) config.assets.precompile += %w( browse.css leaflet-all.css leaflet.ie.css )