From: garvinhicking Date: Wed, 12 Dec 2007 10:06:31 +0000 (+0000) Subject: browser compat not needed for IE7 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8e852856446358eafc840655ccd50b7bc3c6906b;p=s9y.git browser compat not needed for IE7 --- diff --git a/docs/NEWS b/docs/NEWS index f4c106d..f3e59e3 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 1.3 () ------------------------------------------------------------------------ + * Make browser compatibility plugin bail out for IE7. Thanks to + Freudi from the forums. + * Add possibility to spartacus to upload files via FTP. This can bypass Safe_mode restrictions on your server to make Spartacus work for you. (VladaAjgl) diff --git a/plugins/serendipity_event_browsercompatibility/pngbehavior.htc b/plugins/serendipity_event_browsercompatibility/pngbehavior.htc index d4d7246..5c63df4 100644 --- a/plugins/serendipity_event_browsercompatibility/pngbehavior.htc +++ b/plugins/serendipity_event_browsercompatibility/pngbehavior.htc @@ -22,7 +22,7 @@ * */ -var supported = /MSIE ((5\.5)|[6789])/.test(navigator.userAgent) && +var supported = /MSIE ((5\.5)|[6])/.test(navigator.userAgent) && navigator.platform == "Win32"; var realSrc; @@ -64,8 +64,12 @@ function fixImage() { element.src = blankSrc; // set filter element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')"; - element.runtimeStyle.width = width; - element.runtimeStyle.height = height; + if (width > 0) { + element.runtimeStyle.width = width; + } + if (height > 0) { + element.runtimeStyle.height = height; + } } else { // remove filter