Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bestpractical/rt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Brandt <jbrandt@bestpractical.com>2022-08-08 22:14:06 +0300
committerJim Brandt <jbrandt@bestpractical.com>2022-08-08 22:14:06 +0300
commit9c42a176ed087ffbc703b963f9c35d2958bca978 (patch)
tree53e07eadcdec57884db427517bd56b29f0de6108
parent0424423db5da4919eb7fda29aa6e564b086a7b38 (diff)
Add callback to modify content presented via TitleBox5.0/titlebox-callback
-rw-r--r--share/html/Widgets/TitleBox2
1 files changed, 2 insertions, 0 deletions
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>