I''ve found that when I revert this change, toggle works again. Otherwise, it''s broken (Mac OS Tiger, Safari and Firefox): - element.style.display - (element.style.display == ''none'' ? '''' : ''none''); + Element[Element.visible(element) ? ''show'' : ''hide''](element); I looked around for the proper bug tracking, but can''t seem to find it and the scriptaculous web site is unreachable. If someone sends me the URL, I''ll file an issue. Jamie
Hello Jamie, 2005/10/15, Jamie Orchard-Hays <jamie@dang.com>:> I looked around for the proper bug tracking, but can''t seem to find > it and the scriptaculous web site is unreachable. If someone sends me > the URL, I''ll file an issue.http://dev.rubyonrails.com/newticket Make sure to set the component to scriptaculous. Bye ! Fran?ois
That''s already fixed in the Prototype DARCS repository, but there isn''t a new _pre release of it yet. The fix is to use Element[Element.visible(element) ? ''hide'' : show''](element); instead of Element[Element.visible(element) ? ''show'' : ''hide''](element); :) Thomas Am 15.10.2005 um 06:24 schrieb Jamie Orchard-Hays:> I''ve found that when I revert this change, toggle works again. > Otherwise, it''s broken (Mac OS Tiger, Safari and Firefox): > > - element.style.display > - (element.style.display == ''none'' ? '''' : ''none''); > + Element[Element.visible(element) ? ''show'' : ''hide''](element); > > I looked around for the proper bug tracking, but can''t seem to find > it and the scriptaculous web site is unreachable. If someone sends > me the URL, I''ll file an issue. > > Jamie > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
LOL. Can''t believe I didn''t catch that! Jamie On Oct 15, 2005, at 4:11 AM, Thomas Fuchs wrote:> The fix is to use > > Element[Element.visible(element) ? ''hide'' : show''](element); > > instead of > > Element[Element.visible(element) ? ''show'' : ''hide''](element); > > :) > > Thomas