Skip to content

Commit

Permalink
Item12132: enabling {JqueryPlugin}{Debug} would unconditionally appen…
Browse files Browse the repository at this point in the history
…d .uncompressed, even if the plugin had already taken that into account (e.g. through a local debug switch specific to the plugin)

git-svn-id: http://svn.foswiki.org/trunk@15551 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Oct 10, 2012
1 parent 290ab65 commit 6edeac6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin/Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ sub init {
sub renderCSS {
my ( $this, $text ) = @_;

$text =~ s/\.css$/.uncompressed.css/ if $this->{debug};
$text =~ s/\.css$/.uncompressed.css/
if $this->{debug} && $text !~ /(\.uncompressed|_src)\./;
$text .= '?version=' . $this->{version};
$text =
"<link rel='stylesheet' href='$this->{puburl}/$text' type='text/css' media='all' />\n";
Expand All @@ -147,7 +148,8 @@ sub renderCSS {
sub renderJS {
my ( $this, $text ) = @_;

$text =~ s/\.js$/.uncompressed.js/ if $this->{debug};
$text =~ s/\.js$/.uncompressed.js/
if $this->{debug} && $text !~ /(\.uncompressed|_src)\./;
$text .= '?version=' . $this->{version};
$text =
"<script type='text/javascript' src='$this->{puburl}/$text'></script>\n";
Expand Down

0 comments on commit 6edeac6

Please sign in to comment.