Some more minor formatting tweaks.
This commit is contained in:
parent
1970154c3b
commit
426045cc74
12
src/css.js
12
src/css.js
|
@ -39,6 +39,7 @@ jQuery.extend({
|
||||||
opacity: {
|
opacity: {
|
||||||
get: function( elem, force ) {
|
get: function( elem, force ) {
|
||||||
var style = elem.style;
|
var style = elem.style;
|
||||||
|
|
||||||
if ( jQuery.support.opacity && !style.filter ) {
|
if ( jQuery.support.opacity && !style.filter ) {
|
||||||
return false; // move along, nothing to see here
|
return false; // move along, nothing to see here
|
||||||
}
|
}
|
||||||
|
@ -55,6 +56,7 @@ jQuery.extend({
|
||||||
|
|
||||||
set: function( elem, value ) {
|
set: function( elem, value ) {
|
||||||
var style = elem.style;
|
var style = elem.style;
|
||||||
|
|
||||||
if ( jQuery.support.opacity && !style.filter ) {
|
if ( jQuery.support.opacity && !style.filter ) {
|
||||||
return false; // move along, nothing to see here
|
return false; // move along, nothing to see here
|
||||||
}
|
}
|
||||||
|
@ -64,9 +66,15 @@ jQuery.extend({
|
||||||
style.zoom = 1;
|
style.zoom = 1;
|
||||||
|
|
||||||
// Set the alpha filter to set the opacity
|
// Set the alpha filter to set the opacity
|
||||||
var opacity = parseInt( value, 10 ) + "" === "NaN" ? "" : "alpha(opacity=" + value * 100 + ")";
|
var opacity = parseInt( value, 10 ) + "" === "NaN" ?
|
||||||
|
"" :
|
||||||
|
"alpha(opacity=" + value * 100 + ")";
|
||||||
|
|
||||||
var filter = style.filter || jQuery.curCSS( elem, "filter" ) || "";
|
var filter = style.filter || jQuery.curCSS( elem, "filter" ) || "";
|
||||||
style.filter = ralpha.test(filter) ? filter.replace(ralpha, opacity) : opacity;
|
|
||||||
|
style.filter = ralpha.test(filter) ?
|
||||||
|
filter.replace(ralpha, opacity) :
|
||||||
|
opacity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue