diff --git a/app/assets/javascripts/pngfix.js b/app/assets/javascripts/pngfix.js deleted file mode 100644 index e6ca5d6f77..0000000000 --- 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 95984ca974..d88465aafc 100644 --- a/app/views/layouts/_head.html.erb +++ b/app/views/layouts/_head.html.erb @@ -1,7 +1,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 3557d8d8b9..47358b3878 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -70,7 +70,7 @@ # 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 )