[Rt-commit] rt branch, 4.4/end-of-head-callback, created. rt-4.4.2-238-gd2b5c61bd
? sunnavy
sunnavy at bestpractical.com
Thu May 17 10:56:51 EDT 2018
The branch, 4.4/end-of-head-callback has been created
at d2b5c61bd6e9f92d52f78fd6cf70fc87598bac1d (commit)
- Log -----------------------------------------------------------------
commit d2b5c61bd6e9f92d52f78fd6cf70fc87598bac1d
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu May 17 22:48:23 2018 +0800
Add EndOfHead callback to /Elements/Header
Previously we had callback "Head" at that position, but it's been moved
ahead of HeaderJavascript, which makes it hard to customize js since
RT's core js lib hasn't been loaded yet. Now people can use this new
callback to customize js.
diff --git a/share/html/Elements/Header b/share/html/Elements/Header
index e35642e93..43a611582 100644
--- a/share/html/Elements/Header
+++ b/share/html/Elements/Header
@@ -96,6 +96,8 @@
<& /Elements/Framekiller &>
+% $m->callback( CallbackName => 'EndOfHead', ARGSRef => \%ARGS );
+
</head>
<body class="<% join( ' ',@{$ARGS{'BodyClass'}}) %>" <% $id && qq[id="comp-$id"] |n %>>
-----------------------------------------------------------------------
More information about the rt-commit
mailing list