diff options
author | chrisaga <chrisaga@piwigo.org> | 2005-11-17 20:13:36 +0000 |
---|---|---|
committer | chrisaga <chrisaga@piwigo.org> | 2005-11-17 20:13:36 +0000 |
commit | f280ff4b171e1c3b6150794ac8a875b00e4f7522 (patch) | |
tree | a2f7b47a1b3bc4f7f288b0c9e63b0e5519ee16c0 /include/pngfix.js | |
parent | b6833701d641406055951c77f0371476cee47cf0 (diff) |
bug 206 fixed: PNG thumbnails clipped with IE
- added class="icon" to recent.png (functions_html.inc.php)
- added class="button" to al png button images (*.tpl)
- changed pngfix.js to only fix icon or button images
template improvement: category prettier and simpler (a little bit)
- got rid of one SPAN level
- content.css more readable
git-svn-id: http://piwigo.org/svn/branches/branch-1_5@939 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/pngfix.js | 7 |
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); |