projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e131b1f
)
Header changes to disable RT javascript, RT#34237
author
Ivan Kohler
<ivan@freeside.biz>
Fri, 10 Jul 2015 05:29:58 +0000
(22:29 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Fri, 10 Jul 2015 05:29:58 +0000
(22:29 -0700)
rt/share/html/Elements/Header
patch
|
blob
|
history
diff --git
a/rt/share/html/Elements/Header
b/rt/share/html/Elements/Header
index
6c0f425
..
fb6cbda
100755
(executable)
--- a/
rt/share/html/Elements/Header
+++ b/
rt/share/html/Elements/Header
@@
-46,11
+46,12
@@
%#
%# END BPS TAGGED BLOCK }}}
<& /elements/header.html, {
%#
%# 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,
#make space for RT menu for now# 'nobr' => 1,
- 'nocss' => 1,
+ 'nocss' => 1,
+ 'no_jquery' => $JavaScript,
}
&>
<%INIT>
}
&>
<%INIT>
@@
-115,9
+116,11
@@
if ( $RSSAutoDiscovery ) {
$head .= qq(<link rel="alternate" href="$RSSAutoDiscovery" type="application/rss+xml" title="RSS RT Search" />);
}
$head .= qq(<link rel="alternate" href="$RSSAutoDiscovery" type="application/rss+xml" title="RSS RT Search" />);
}
-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);
+ }
}
# $m->callback( %ARGS, CallbackName => 'Head' );
}
# $m->callback( %ARGS, CallbackName => 'Head' );