[Cubicweb] JQuery Corner IE8 patch

Vincent Godard vincent at secondweb.fr
Mon Mar 1 10:39:18 CET 2010


Hi,

As Internet Explorer 8 no longer supports dynamic properties, we
encountered a javascript bug in jquery.corner.js

We propose the following patch of web/data/jquery.corner.js

diff -r 4dd94a51c2c1 web/data/jquery.corner.js
--- a/web/data/jquery.corner.js	Mon Feb 22 17:50:45 2010 +0100
+++ b/web/data/jquery.corner.js	Mon Mar 01 10:35:08 2010 +0100
@@ -140,7 +140,7 @@
                         this.style.position = 'relative';
                     ds.position = 'absolute';
                     ds.bottom = ds.left = ds.padding = ds.margin = '0';
-                    if ($.browser.msie)
+		    if (($.browser.msie) && ($.browser.version < 8.0))
                         ds.setExpression('width',
'this.parentNode.offsetWidth');
                     else
                         ds.width = '100%';

Regards,
Vincent, Secondweb



More information about the Cubicweb mailing list