[Jifty-commit] r3944 - jifty/trunk/lib/Jifty/Plugin/TabView
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Thu Aug 23 10:42:21 EDT 2007
Author: clkao
Date: Thu Aug 23 10:42:20 2007
New Revision: 3944
Modified:
jifty/trunk/lib/Jifty/Plugin/TabView/View.pm
Log:
update tabview plugin to use new relative path syntax for td show().
Modified: jifty/trunk/lib/Jifty/Plugin/TabView/View.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/TabView/View.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/TabView/View.pm Thu Aug 23 10:42:20 2007
@@ -49,7 +49,7 @@
$tab =~ s/_tab$// ?
(onclick =>
{ region => Jifty->web->current_region ? Jifty->web->current_region->qualified_name."-$tab-tab" : "$tab-tab",
- replace_with => $self->can('fragment_for') ? $self->fragment_for($tab) : $tab, # XXX: should have higher level function handling mount point
+ replace_with => $self->can('fragment_for') ? $self->fragment_for($tab) : "./$tab", # XXX: should have higher level function handling mount point
args => { map { $_ => get($_)} @$args },
}) : ()
) }
@@ -61,11 +61,12 @@
div {
if (s/_tab$//) {
render_region(name => $_.'-tab',
- ($default_shown++)? () : ( path => $_, args => { map { $_ => get($_)} @$args })
+ ($default_shown++)? () : ( path => $self->can('fragment_for') ? $self->fragment_for($_) : "./$_",
+ args => { map { $_ => get($_)} @$args })
)
}
else {
- die "$self $_" unless $self->has_template($_);
+ die "$self $_" unless $self->has_template("./$_");
$self->has_template($_)->();
}
}
More information about the Jifty-commit
mailing list