[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-133-g19c9ce3

Shawn Moore sartak at bestpractical.com
Mon Jul 12 21:49:58 EDT 2010


The branch, 3.9-trunk has been updated
       via  19c9ce303999a2fe129562d20387b61fbbfdff75 (commit)
      from  7b8bcff9e419200b0e6f51169cc7c6c4eb1f3704 (commit)

Summary of changes:
 share/html/Elements/Menu |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 19c9ce303999a2fe129562d20387b61fbbfdff75
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Mon Jul 12 21:51:23 2010 -0400

    Respect the target attribute in the Menu

diff --git a/share/html/Elements/Menu b/share/html/Elements/Menu
index 83644da..717e788 100755
--- a/share/html/Elements/Menu
+++ b/share/html/Elements/Menu
@@ -61,6 +61,7 @@ my @tabs = sort keys %$toptabs;
 
      my $current = $current_toptab || '';
      my $path    = $toptabs->{$tab}->{'path'} || "";
+     my $target  = $toptabs->{$tab}->{'target'} || "";
      
      $path    =~ s#/index.html$##gi;
      $current =~ s#/index.html$##gi;
@@ -98,6 +99,7 @@ my @tabs = sort keys %$toptabs;
     <% $count > 1 && !$postsep && qq[<span class="bullet">&#183; </span>]|n%>
     <a href="<% $url %>"
       <% $class->{a} && qq[ class="$class->{a}"] |n %>
+      <% $target && qq[ target="$target"] |n %>
       <% !$level && " accesskey='".$accesskey++."'" |n %>>
     <% $toptabs->{$tab}->{'title'}%></a>
 

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


More information about the Rt-commit mailing list