diff options
| author | Mark Wells <mark@freeside.biz> | 2015-07-10 16:38:28 -0700 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2015-07-10 16:38:28 -0700 |
| commit | 0ed195595b5c7ea404c8848d9d1881ada4214489 (patch) | |
| tree | 6d6f3fe6e980cd123ff7a648d27fb9eb6b16ab13 /rt/share/html/Elements/HeaderJavascript | |
| parent | af05c3dda381122e0a45f72dbc0b4e9492f13fe7 (diff) | |
| parent | df4a68099abfa067014f36f92874fccefdea662e (diff) | |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'rt/share/html/Elements/HeaderJavascript')
| -rw-r--r-- | rt/share/html/Elements/HeaderJavascript | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/rt/share/html/Elements/HeaderJavascript b/rt/share/html/Elements/HeaderJavascript index 4bba5592c..79ee74e21 100644 --- a/rt/share/html/Elements/HeaderJavascript +++ b/rt/share/html/Elements/HeaderJavascript @@ -51,37 +51,27 @@ $onload => undef </%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"><!-- - jQuery( loadTitleBoxStates ); +jQuery( loadTitleBoxStates ); % if ( $focus ) { - jQuery(function () { focusElementById(<% $focus |n,j%>) }); + jQuery(function () { jQuery(<% $focus |n,j%>).focus() }); % } % if ( $onload ) { jQuery( <% $onload |n %> ); % } - -% if ( $RichText and RT->Config->Get('MessageBoxRichText', $session{'CurrentUser'})) { - jQuery().ready(function () { ReplaceAllTextareas() }); -% } --></script> -<%ARGS> -$RichText => 1 -</%ARGS> <%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; - @js_files = "squished-$key.js"; + @js_files = "/NoAuth/js/squished-$key.js"; } </%INIT> |
