[Rt-commit] rt branch, 4.2/scalar-ref-actions, created. rt-4.1.17-198-gf84d637
Alex Vandiver
alexmv at bestpractical.com
Mon Aug 5 17:24:05 EDT 2013
The branch, 4.2/scalar-ref-actions has been created
at f84d6372af5d7fe0e539a0f09cf087a434120cb1 (commit)
- Log -----------------------------------------------------------------
commit f84d6372af5d7fe0e539a0f09cf087a434120cb1
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Mon Aug 5 16:51:28 2013 -0400
Allow explicit HTML (such as javascript) to be injected via Actions
Further the use of string references to display as unescaped text, by
allowing them in the Actions list. The primary use is to execute
javascript on page after some process completes.
diff --git a/share/html/Elements/ListActions b/share/html/Elements/ListActions
index 805bd2e..014002a 100644
--- a/share/html/Elements/ListActions
+++ b/share/html/Elements/ListActions
@@ -45,10 +45,11 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
+% $m->out($$_) for grep {ref $_} @actions;
<div class="results">
<&| /Widgets/TitleBox, title => loc('Results'), %{$titlebox || {}} &>
<ul class="action-results">
-% foreach my $action (@actions) {
+% foreach my $action (grep {not ref $_} @actions) {
<li><%$action%></li>
% }
</ul>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list