[Rt-commit] r15899 - in rt/branches/3.999-DANGEROUS: share/html/Widgets

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Sep 11 01:30:44 EDT 2008


Author: sunnavy
Date: Thu Sep 11 01:30:43 2008
New Revision: 15899

Modified:
   rt/branches/3.999-DANGEROUS/   (props changed)
   rt/branches/3.999-DANGEROUS/share/html/Widgets/TitleBoxStart

Log:
 r16604 at sunnavys-mb:  sunnavy | 2008-09-11 13:04:09 +0800
 seems somebody disabled hideable stuff for titlebox for some reason, reenable it for now. please shout at me if I am wrong


Modified: rt/branches/3.999-DANGEROUS/share/html/Widgets/TitleBoxStart
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Widgets/TitleBoxStart	(original)
+++ rt/branches/3.999-DANGEROUS/share/html/Widgets/TitleBoxStart	Thu Sep 11 01:30:43 2008
@@ -47,7 +47,7 @@
 %# END BPS TAGGED BLOCK }}}
 <div class="titlebox<% $class ? " $class " : '' %>" id="<% $id %>">
   <div class="titlebox-title<% $title_class ? " $title_class" : ''%>">
-% if (0) { #$hideable) {
+% if ($hideable) {
     <span class="widget"><a href="#" 
 	onclick="return rollup('<%$tid%>');" 
 	onfocus="this.blur(); return false;" 
@@ -85,13 +85,15 @@
 #
 my $page = $m->request_comp->path;
 
-my $tid  ='';
-# "TitleBox--$page--" .  join '--', ($class, $bodyclass, $title_b64, $id);
+my $title_b64 = MIME::Base64::encode_base64(Encode::encode_utf8($title), '');
 
-#$tid =~ s{[/\s'\\]+}{_}g;
+my $tid  = "TitleBox--$page--" .
+            join '--', ($class, $bodyclass, $title_b64, $id);
 
-#my $i = 0;
-#$i++ while $m->notes("$tid-$i");
-#$m->notes("$tid-$i" => 1);
-#$tid = "$tid-$i";
+$tid =~ s{[/\s'\\]+}{_}g;
+
+my $i = 0;
+$i++ while $m->notes("$tid-$i");
+$m->notes("$tid-$i" => 1);
+$tid = "$tid-$i";
 </%init>


More information about the Rt-commit mailing list