aboutsummaryrefslogtreecommitdiffstats
path: root/include/pngfix.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/pngfix.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/pngfix.js b/include/pngfix.js
index ba1a099ae..a543c09cb 100644
--- a/include/pngfix.js
+++ b/include/pngfix.js
@@ -6,7 +6,9 @@ function correctPNG()
{
for(var i=0; i<document.images.length; i++)
{
- var img = document.images[i]
+ var img = document.images[i]
+ if (img.className == "button" || img.className == "icon")
+ {
var imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
@@ -24,6 +26,7 @@ function correctPNG()
img.outerHTML = strNewHTML
i = i-1
}
+ }
}
}
-window.attachEvent("onload", correctPNG); \ No newline at end of file
+window.attachEvent("onload", correctPNG);