From: Ivan Kohler Date: Fri, 10 Jul 2015 05:30:09 +0000 (-0700) Subject: Header changes to disable RT javascript, RT#34237 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=e05a846f4831ee2ce9797a2e0c910c979752bfe1 Header changes to disable RT javascript, RT#34237 --- 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); + } } #