[Jifty-commit] r3434 - jifty/trunk/lib/Jifty/Plugin
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sun Jun 10 21:29:20 EDT 2007
Author: clkao
Date: Sun Jun 10 21:29:18 2007
New Revision: 3434
Modified:
jifty/trunk/lib/Jifty/Plugin/SinglePage.pm
Log:
Unbreak nojs form submitting when SPA is enabled.
Modified: jifty/trunk/lib/Jifty/Plugin/SinglePage.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/SinglePage.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/SinglePage.pm Sun Jun 10 21:29:18 2007
@@ -27,14 +27,13 @@
my ( $clickable, $args ) = @_;
my $url = $args->{'url'};
if ( $url && $url !~ m/^#/ && $url !~ m{^https?://} ) {
- # XXX mind the existing onclick
$self->_push_onclick($args, {
region => $self->region_name,
replace_with => $url,
- args => delete $args->{parameters}});
+ args => $args->{parameters}});
}
elsif (exists $args->{submit}) {
- $self->_push_onclick($args, { refresh_self => 1, submit => delete $args->{submit} });
+ $self->_push_onclick($args, { refresh_self => 1, submit => $args->{submit} });
$args->{as_button} = 1;
}
if (my $form = delete $args->{_form}) {
More information about the Jifty-commit
mailing list