projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.2.16
[freeside.git]
/
rt
/
share
/
html
/
Elements
/
HeaderJavascript
diff --git
a/rt/share/html/Elements/HeaderJavascript
b/rt/share/html/Elements/HeaderJavascript
index
d5741f4
..
d58904d
100644
(file)
--- a/
rt/share/html/Elements/HeaderJavascript
+++ b/
rt/share/html/Elements/HeaderJavascript
@@
-2,7
+2,7
@@
%#
%# COPYRIGHT:
%#
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-201
2
Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-201
9
Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@
-51,37
+51,27
@@
$onload => undef
</%args>
% for my $jsfile ( @js_files ) {
</%args>
% for my $jsfile ( @js_files ) {
-<script type="text/javascript" src="<%RT->Config->Get('WebPath')%>
/NoAuth/js/
<% $jsfile %>"></script>
+<script type="text/javascript" src="<%RT->Config->Get('WebPath')%><% $jsfile %>"></script>
% }
% }
-% if ( $RichText and RT->Config->Get('MessageBoxRichText', $session{'CurrentUser'}) ) {
-<script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/RichText/ckeditor.js"></script>
-% }
<script type="text/javascript"><!--
<script type="text/javascript"><!--
-
jQuery( loadTitleBoxStates );
+jQuery( loadTitleBoxStates );
% if ( $focus ) {
% if ( $focus ) {
- jQuery(function () {
focusElementById(<% $focus |n,j%>
) });
+ jQuery(function () {
jQuery(<% $focus |n,j%>).focus(
) });
% }
% if ( $onload ) {
jQuery( <% $onload |n %> );
% }
% }
% if ( $onload ) {
jQuery( <% $onload |n %> );
% }
-
-% if ( $RichText and RT->Config->Get('MessageBoxRichText', $session{'CurrentUser'})) {
- jQuery().ready(function () { ReplaceAllTextareas(<%$DECODED_ARGS->{'CKeditorEncoded'} || 0 |n,j%>) });
-% }
--></script>
--></script>
-<%ARGS>
-$RichText => 1
-</%ARGS>
<%INIT>
my @js_files;
if ( RT->Config->Get('DevelMode') ) {
<%INIT>
my @js_files;
if ( RT->Config->Get('DevelMode') ) {
- @js_files =
RT->Config->Get('JSFiles'
);
+ @js_files =
map { $_ =~ m{^/} ? $_ : "/static/js/$_" } RT::Interface::Web->JSFiles(
);
}
else {
my $key = RT::Interface::Web::SquishedJS()->Key;
}
else {
my $key = RT::Interface::Web::SquishedJS()->Key;
- @js_files = "squished-$key.js";
+ @js_files = "
/NoAuth/js/
squished-$key.js";
}
</%INIT>
}
</%INIT>