Skip to content

Commit

Permalink
Item9004: correct the html output of JQueryPlugin
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@7369 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed May 11, 2010
1 parent fd306e7 commit 0b84165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin/Plugin.pm
Expand Up @@ -141,7 +141,7 @@ sub renderJS {

$text =~ s/\.js$/.uncompressed.js/ if $this->{debug};
$text .= '?version='.$this->{version};
$text = "<script src='$this->{puburl}/$text'></script>\n";
$text = "<script type="text/javascript" src='$this->{puburl}/$text'></script>\n";

return $text;
}
Expand Down
2 changes: 1 addition & 1 deletion JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin/Plugins.pm
Expand Up @@ -56,7 +56,7 @@ sub init () {
# load jquery
my $jQuery = $Foswiki::cfg{JQueryPlugin}{JQueryVersion} || "jquery-1.3.2";
$jQuery .= ".uncompressed" if $debug;
my $footer = "<script src='%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/$jQuery.js'></script>";
my $footer = "<script type="text/javascript" src='%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/$jQuery.js'></script>";

# switch on noconflict mode
$footer .= "\n<script src='%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/jquery.noconflict.js'></script>"
Expand Down

0 comments on commit 0b84165

Please sign in to comment.