[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-115-g683e575

? sunnavy sunnavy at bestpractical.com
Tue Jul 6 16:26:49 EDT 2010


The branch, 3.9-trunk has been updated
       via  683e5753c7efd1e59fa59b1db0f5280f80ab4e4b (commit)
       via  b2640d1f394aefded91138d0469b661ed2b364cc (commit)
      from  4f9ee98c3b34a38f0d0ef7d5102320e144fb7e49 (commit)

Summary of changes:
 share/html/Search/Simple.html   |    3 ++-
 share/html/Ticket/Elements/Tabs |    6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit b2640d1f394aefded91138d0469b661ed2b364cc
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Jul 7 04:22:52 2010 +0800

    let callback modify %ARGS, especially for current_toptab

diff --git a/share/html/Ticket/Elements/Tabs b/share/html/Ticket/Elements/Tabs
index 0414359..c2765ec 100755
--- a/share/html/Ticket/Elements/Tabs
+++ b/share/html/Ticket/Elements/Tabs
@@ -45,16 +45,16 @@
 %# those contributions and any derivatives thereof.
 %# 
 %# END BPS TAGGED BLOCK }}}
-% $m->callback( Ticket => $Ticket, actions=> $actions, tabs => $tabs, %ARGS );
+% $m->callback( Ticket => $Ticket, actions=> $actions, tabs => $tabs, %ARGS, args => \%ARGS );
 <& /Elements/Tabs, 
     tabs => $tabs, 
     actions => $actions, 
     current_tab => $current_tab, 
-    current_toptab => $current_toptab,
+    current_toptab => $ARGS{current_toptab} || 'Search/Build.html',
     Title => $Title &> 
 <%INIT>
 my $tabs = {};
-my $current_toptab = "Search/Build.html", my $searchtabs = {};
+my $searchtabs = {};
 my $actions;
 
 if ($Ticket) {

commit 683e5753c7efd1e59fa59b1db0f5280f80ab4e4b
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Jul 7 04:23:41 2010 +0800

    use /Ticket/Elements/Tabs for simple search

diff --git a/share/html/Search/Simple.html b/share/html/Search/Simple.html
index 2f7996b..c77ee77 100644
--- a/share/html/Search/Simple.html
+++ b/share/html/Search/Simple.html
@@ -46,8 +46,9 @@
 %# 
 %# END BPS TAGGED BLOCK }}}
 <& /Elements/Header, Title => $title &>
-<& /Elements/Tabs, 
+<& /Ticket/Elements/Tabs, 
     current_toptab => "Search/Simple.html",
+    current_tab => "Search/Simple.html",
     Title => $title
 &>
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list