[Jifty-commit] r3329 - jifty/trunk/lib/Jifty/Plugin

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Jun 3 16:09:55 EDT 2007


Author: clkao
Date: Sun Jun  3 16:09:55 2007
New Revision: 3329

Modified:
   jifty/trunk/lib/Jifty/Plugin/SinglePage.pm

Log:
propogate url arguments to onclick.

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  3 16:09:55 2007
@@ -12,7 +12,10 @@
 sub _sp_link {
     my ($self, $args) = @_;
     if (my $url = delete $args->{'url'}) {
-	$args->{onclick}=  { region       => "__page", replace_with => $url };
+	# XXX mind the existing onclick
+	warn 'ooops got original onclick'. Dumper($args->{onclick}) if $args->{onclick};
+	$args->{onclick}=  { region       => "__page", replace_with => $url,
+			     args => delete $args->{parameters} };
     }
 }
 


More information about the Jifty-commit mailing list