From: Tom Gilder Date: Thu, 13 Oct 2005 19:32:35 +0000 (+0000) Subject: set doneIEAlphaFix=true only when it actually has X-Git-Tag: 1.6.0~1430 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=956380cd8c9e968af8b29fc92791728f43b40409;p=lhc%2Fweb%2Fwiklou.git set doneIEAlphaFix=true only when it actually has --- diff --git a/skins/common/IEFixes.js b/skins/common/IEFixes.js index 29c2d65f53..9c25adf0d3 100644 --- a/skins/common/IEFixes.js +++ b/skins/common/IEFixes.js @@ -20,7 +20,6 @@ function fixalpha() { // bg if (isMSIE55 && !doneIEAlphaFix) { - doneIEAlphaFix = true; var plogo = document.getElementById('p-logo'); if (!plogo) return; @@ -30,6 +29,8 @@ function fixalpha() { var bg = logoa.currentStyle.backgroundImage; var imageUrl = bg.substring(5, bg.length-2); + doneIEAlphaFix = true; + if (imageUrl.substr(imageUrl.length-4).toLowerCase() == '.png') { var logospan = logoa.appendChild(document.createElement('span'));