Somone have tested the last scriptaculous version that ships with last
prototype?
I you make an Effect.Pulsate, the element stays hidden after the effect
finish if the element don't have opacity stablished. This is for the changes
on the setStyle method on prototype.
The original code is:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
setStyle: function(element, style) {
element = $(element);
for (var name in style) {
var value = style[name];
if(name == 'opacity') {
if (value == 1) {
value = (/Gecko/.test(navigator.userAgent) &&
!/Konqueror|Safari|KHTML/.test(navigator.userAgent)) ? 0.999999:
1.0;
if(/MSIE/.test(navigator.userAgent) && !window.opera)
element.style.filter = element.getStyle
('filter').replace(/alpha\([^\)]*\)/gi,'');
} else {
if(value < 0.00001) value = 0;
if(/MSIE/.test(navigator.userAgent) && !window.opera)
element.style.filter =
element.getStyle('filter').replace(/alpha\([^\)]*\)/gi,'')
+
'alpha(opacity='+value*100+')';
}
} else if(name == 'float') name = (typeof element.style.styleFloat !=
'undefined') ? 'styleFloat' : 'cssFloat';
element.style[name.camelize()] = value;
}
return element;
},
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Maybe this change on line 6, solve the problem:
original --> if (value == 1) {
new (?) --> if (value == 1 || value == '') {
Hope somebody says something about this.
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---