aboutsummaryrefslogtreecommitdiffstats
path: root/include/pngfix.js
diff options
context:
space:
mode:
authorchrisaga <chrisaga@piwigo.org>2005-11-19 23:46:18 +0000
committerchrisaga <chrisaga@piwigo.org>2005-11-19 23:46:18 +0000
commita2910859873e279ed56da45f2a0dff4020accaa6 (patch)
treed1df5264151ddf0624a5d92aa8bc77e74ede75db /include/pngfix.js
parent1ba53a2ffa47e9e6c860b5d3d285b4d22245e815 (diff)
- report bug 206 correction and some template improvement from branch 1.5
- feature 195 : add an "Admin" link under "Home" in the menu bar of the admin page git-svn-id: http://piwigo.org/svn/trunk@948 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/pngfix.js')
-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);