Mailing List Archive

rt branch 5.0/titlebox-callback created. rt-5.0.3-77-g9c42a176ed
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/titlebox-callback has been created
at 9c42a176ed087ffbc703b963f9c35d2958bca978 (commit)

- Log -----------------------------------------------------------------
commit 9c42a176ed087ffbc703b963f9c35d2958bca978
Author: Jim Brandt <jbrandt@bestpractical.com>
Date: Mon Aug 8 15:14:06 2022 -0400

Add callback to modify content presented via TitleBox

diff --git a/share/html/Widgets/TitleBox b/share/html/Widgets/TitleBox
index 43735d0c19..042ca49604 100644
--- a/share/html/Widgets/TitleBox
+++ b/share/html/Widgets/TitleBox
@@ -59,5 +59,7 @@ $hide_chrome => 0
</%ARGS>
<%INIT>
my $content = $m->content;
+$m->callback( CallbackName => "ModifyContent", ARGSRef => \%ARGS, Content => \$content,
+ Class => \$class, HideEmpty => \$hide_empty, HideChrome => \$hide_chrome );
return if $hide_empty && $content =~ /^\s*$/s;
</%INIT>

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


hooks/post-receive
--
rt
_______________________________________________
rt-commit mailing list
rt-commit@lists.bestpractical.com
https://lists.bestpractical.com/mailman/listinfo/rt-commit