[Rt-commit] rt branch, query-logging, updated. rt-3.8.8-945-gc9df616
Shawn Moore
sartak at bestpractical.com
Tue Sep 28 20:52:04 EDT 2010
The branch, query-logging has been updated
via c9df61609a9b64efa4c6241ff2b941812402f08a (commit)
from a0740a70eb526b33cf8b3c827887f80094262f6b (commit)
Summary of changes:
share/html/Admin/Tools/Queries.html | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit c9df61609a9b64efa4c6241ff2b941812402f08a
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Sep 28 20:55:06 2010 -0400
If we use a <script> tag we get syntax highlighting
diff --git a/share/html/Admin/Tools/Queries.html b/share/html/Admin/Tools/Queries.html
index 1eaf347..36d2c83 100644
--- a/share/html/Admin/Tools/Queries.html
+++ b/share/html/Admin/Tools/Queries.html
@@ -51,10 +51,7 @@ unless ($session{'CurrentUser'}->HasRight( Object=> $RT::System, Right => 'Super
Abort(loc('This feature is only available to system administrators'));
}
</%init>
-<& /Admin/Elements/Header,
- Title => $title,
- onload => 'function () { jQuery(".tablesorter").tablesorter(); }',
-&>
+<& /Admin/Elements/Header, Title => $title &>
<& /Admin/Elements/ToolTabs,
current_tab => 'Admin/Tools/Queries.html',
current_subtab => 'Admin/Tools/Queries.html',
@@ -67,6 +64,10 @@ unless ($session{'CurrentUser'}->HasRight( Object=> $RT::System, Right => 'Super
% } elsif (!$history) {
<p><&|/l&>This server process has recorded no SQL queries.</&></p>
% } else {
+ <script type="text/javascript">
+ jQuery(function () { jQuery(".tablesorter").tablesorter(); });
+ </script>
+
<ol>
% for my $request (@$history) {
% my $total = 0;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list