summaryrefslogtreecommitdiff
path: root/rt
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-07-09 22:30:09 -0700
committerIvan Kohler <ivan@freeside.biz>2015-07-09 22:30:09 -0700
commit07b4bc84d1078f7390221d766cdb3142513db4b0 (patch)
treee2c23b14829db30df585ecea41964cad76c40314 /rt
parent2e52b3a969c6325e9b74ef4ac7f5d435a999f309 (diff)
Header changes to disable RT javascript, RT#34237
Diffstat (limited to 'rt')
-rwxr-xr-xrt/share/html/Elements/Header17
1 files changed, 10 insertions, 7 deletions
diff --git a/rt/share/html/Elements/Header b/rt/share/html/Elements/Header
index 1f6035d7d..664da06b0 100755
--- a/rt/share/html/Elements/Header
+++ b/rt/share/html/Elements/Header
@@ -46,11 +46,12 @@
%#
%# END BPS TAGGED BLOCK }}}
<& /elements/header.html, {
- 'title' => $Title,
- 'head' => $head,
- 'etc' => $etc,
+ 'title' => $Title,
+ 'head' => $head,
+ 'etc' => $etc,
#make space for RT menu for now# 'nobr' => 1,
- 'nocss' => 1,
+ 'nocss' => 1,
+ 'no_jquery' => $JavaScript,
}
&>
<%INIT>
@@ -113,9 +114,11 @@ if ($JavaScript) {
$head .= $m->scomp('HeaderJavascript', focus => $Focus, onload => $onload, RichText => $RichText );
}
-my $stylesheet_plugin = "/NoAuth/css/$style/InHeader";
-if ($m->comp_exists($stylesheet_plugin) ) {
- $head .= $m->scomp($stylesheet_plugin);
+if ($JavaScript) {
+ my $stylesheet_plugin = "/NoAuth/css/$style/InHeader";
+ if ($m->comp_exists($stylesheet_plugin) ) {
+ $head .= $m->scomp($stylesheet_plugin);
+ }
}
#<!-- Site CSS from theme editor -->