[Rt-commit] r13067 - in rt/branches/3.8-TESTING: .

kyoki at bestpractical.com kyoki at bestpractical.com
Mon Jun 9 15:22:20 EDT 2008


Author: kyoki
Date: Mon Jun  9 15:22:19 2008
New Revision: 13067

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/share/html/Widgets/TitleBoxStart

Log:
 r22613 at nyx:  kyoki | 2008-06-09 14:08:39 -0400
 RT-Ticket:8401
 RT-Update: correspond
 applied patch from Anton Yuzhaninov


Modified: rt/branches/3.8-TESTING/share/html/Widgets/TitleBoxStart
==============================================================================
--- rt/branches/3.8-TESTING/share/html/Widgets/TitleBoxStart	(original)
+++ rt/branches/3.8-TESTING/share/html/Widgets/TitleBoxStart	Mon Jun  9 15:22:19 2008
@@ -48,10 +48,25 @@
 <div class="titlebox<% $class ? " $class " : '' %>" id="<% $id %>">
   <div class="titlebox-title<% $title_class ? " $title_class" : ''%>">
 % if ($hideable) {
-    <span class="widget"><a href="#" onclick="return rollup('<%$tid%>');" onfocus="this.blur(); return false;" title="Toggle visibility">X</a></span>
+    <span class="widget"><a href="#" 
+	onclick="return rollup('<%$tid%>');" 
+	onfocus="this.blur(); return false;" 
+	title="Toggle visibility">X</a>
+	</span>
 % }
-    <span class="left"><% $title_href ? qq[<a href="$title_href">] : '' | n %><% $title %><% $title_raw |n %><% $title_href ? "</a>" : '' |n%></span>
-    <span class="right<%($titleright_href || $titleright || $titleright_raw) ? '' : '-empty' %>"><% $titleright_href ? qq[<a href="$titleright_href">] : '' | n %><% $titleright  %><% $titleright_raw |n%> <% $titleright_href ? "</a>" : '' |n%></span>
+    <span class="left">
+      	<% $title_href ? qq[<a href="$title_href">] : '' | n %>
+      	<% $title %>
+     	<% $title_raw |n %>
+      	<% $title_href ? "</a>" : '' |n%>
+    </span>
+    <span class="right
+     	<%($titleright_href || $titleright || $titleright_raw) ? '' : '-empty' %>">
+	<% $titleright_href ? qq[<a href="$titleright_href">] : '' | n %>
+	<% $titleright  %>
+	<% $titleright_raw |n%> 
+	<% $titleright_href ? "</a>" : '' |n%>
+    </span>
   </div>
   <div class="titlebox-content <% $bodyclass %>" id="<% $tid %>">
 
@@ -75,8 +90,10 @@
 #
 my $page = $m->request_comp->path;
 
+my $title_b64 = MIME::Base64::encode_base64(Encode::encode_utf8($title), '');
+
 my $tid  = "TitleBox--$page--" .
-            join '--', ($class, $bodyclass, $title, $id);
+            join '--', ($class, $bodyclass, $title_b64, $id);
 
 $tid =~ s{[/\s'\\]+}{_}g;
 


More information about the Rt-commit mailing list