X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FHeaderJavascript;h=d58904d1530e35c90554478fedbc7ea6dde0180b;hp=4bba5592c3fce8304991ab9210178649fa36fac2;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hpb=73a6a80a9ca5edbd43d139b7cb25bfee4abfd35e diff --git a/rt/share/html/Elements/HeaderJavascript b/rt/share/html/Elements/HeaderJavascript index 4bba5592c..d58904d15 100644 --- a/rt/share/html/Elements/HeaderJavascript +++ b/rt/share/html/Elements/HeaderJavascript @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -51,37 +51,27 @@ $onload => undef % for my $jsfile ( @js_files ) { - + % } -% if ( $RichText and RT->Config->Get('MessageBoxRichText', $session{'CurrentUser'}) ) { - -% } -<%ARGS> -$RichText => 1 - <%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"; }