Subject: | visual_effect function includes extra ";" |
The visual_effect function returns an extra ";", which makes the
resulting javascript break.
The diff to fix it is:
996c996
< return "new Effect.$name( '$element_id', $options );";
---
Show quoted text
> return "new Effect.$name( '$element_id', $options )";
Sam.
Subject: | proto.pl |
require HTML::Prototype;
my $prototype = new HTML::Prototype;
print $prototype->link_to_remote( 'Reload', {
update => "posts",
url => 'http://foo.bar/baz',
complete => $prototype->visual_effect( 'highlight', 'posts', {
duration => '0.5'
} )
} );
print $prototype->sortable_element( 'Reload', {
url => 'http://foo.bar/baz',
complete => $prototype->visual_effect( 'highlight', 'posts', {
duration => '0.5'
} )
} );