[Jifty-commit] r697 - in jifty/trunk: lib/Jifty/Web/Form
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Mar 17 14:37:57 EST 2006
Author: alexmv
Date: Fri Mar 17 14:37:56 2006
New Revision: 697
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Web/Form/Element.pm
Log:
r8604 at zoq-fot-pik: chmrr | 2006-03-17 14:37:39 -0500
* Actually accept region names to refresh
* Warn if we can't find the region
Modified: jifty/trunk/lib/Jifty/Web/Form/Element.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Element.pm (original)
+++ jifty/trunk/lib/Jifty/Web/Form/Element.pm Fri Mar 17 14:37:56 2006
@@ -153,6 +153,8 @@
} elsif (exists $hook->{replace_with}) {
@args{qw/mode path region/} = ('Replace', $hook->{replace_with}, $hook->{region});
} elsif (exists $hook->{refresh}) {
+ my $region = ref $hook->{refresh} ? $hook->{refresh} : Jifty->web->get_region($hook->{refresh});
+ warn "Can't find region ".$hook->{refresh} and next unless $region;
@args{qw/mode path region/} = ('Replace', $hook->{refresh}->path, $hook->{refresh});
} elsif ((exists $hook->{refresh_self} and Jifty->web->current_region) or $hook->{args}) {
# If we just pass arguments, treat as a refresh_self
More information about the Jifty-commit
mailing list