Bug Tracker

Ticket #6271: jquery-patch.txt

File jquery-patch.txt, 950 bytes (added by vortfu, 13 years ago)

Patch

Line 
1--- sites/resources/fitzwilliam/js/base/jquery.js       (revision 4808)
2+++ sites/resources/fitzwilliam/js/base/jquery.js       (working copy)
3@@ -4597,9 +4597,11 @@
4             style.zoom = 1;
5 
6             // Set the alpha filter to set the opacity
7-            var opacity = parseInt( value, 10 ) + "" === "NaN" ? "" : "alpha(opacity=" + value * 100 + ")";
8-            var filter = style.filter || jQuery.curCSS( elem, "filter" ) || "";
9-            style.filter = ralpha.test(filter) ? filter.replace(ralpha, opacity) : opacity;
10+            if(parseInt( value, 10 ) + "" !== "NaN") {
11+               var opacity  = "alpha(opacity=" + value * 100 + ")";
12+               var filter   = style.filter || jQuery.curCSS( elem, "filter" ) || "";
13+               style.filter = ralpha.test(filter) ? filter.replace(ralpha, opacity) : opacity;
14+            }
15          }
16 
17          return style.filter && style.filter.indexOf("opacity=") >= 0 ?