]> git.mjollnir.org Git - s9y.git/commitdiff
browser compat not needed for IE7
authorgarvinhicking <garvinhicking>
Wed, 12 Dec 2007 10:06:31 +0000 (10:06 +0000)
committergarvinhicking <garvinhicking>
Wed, 12 Dec 2007 10:06:31 +0000 (10:06 +0000)
docs/NEWS
plugins/serendipity_event_browsercompatibility/pngbehavior.htc

index f4c106dab5ac262d7ef6eed5ed754a43e17b88cc..f3e59e343020232c2bf165b1a574d207857dff58 100644 (file)
--- 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)
index d4d72469f027669418fbfe3bceed278647989e31..5c63df4661c0c0ace554935864ef032b29ac70ea 100644 (file)
@@ -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