Fix css("opacity") to not clobber other filters in IE. Closes #4707.
This commit is contained in:
parent
839e97199c
commit
64e4a879f9
2 changed files with 20 additions and 8 deletions
|
@ -52,8 +52,9 @@ jQuery.extend({
|
|||
style.zoom = 1;
|
||||
|
||||
// Set the alpha filter to set the opacity
|
||||
style.filter = (style.filter || "").replace( ralpha, "" ) +
|
||||
(parseInt( value, 10 ) + '' === "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
|
||||
var opacity = parseInt( value, 10 ) + '' === "NaN" ? "" : "alpha(opacity=" + value * 100 + ")";
|
||||
filter = style.filter || jQuery.curCSS( elem, 'filter' ) || ""
|
||||
style.filter = ralpha.test(filter) ? filter.replace(ralpha, opacity) : opacity;
|
||||
}
|
||||
|
||||
return style.filter && style.filter.indexOf("opacity=") >= 0 ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue