Skip to content

Commit

Permalink
Item8531:
Browse files Browse the repository at this point in the history
   * removing derived files
   * fixing NoConflict to be added to the body, not the head



git-svn-id: http://svn.foswiki.org/trunk@6360 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Feb 16, 2010
1 parent 04ab4ae commit be150b8
Show file tree
Hide file tree
Showing 131 changed files with 10 additions and 5,709 deletions.
12 changes: 6 additions & 6 deletions JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin/Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -109,20 +109,20 @@ sub init {
$footer .= "<script type='text/javascript' src='$this->{puburl}/$js'></script>\n";
}

# dependencies
my @headerDependency = ('JQUERYPLUGIN::FOSWIKI'); # jquery.foswiki is in there by default
# gather dependencies
my @dependencies = ('JQUERYPLUGIN::FOSWIKI'); # jquery.foswiki is in there by default
foreach my $dep (@{$this->{dependencies}}) {
if ($dep =~ /^JQUERYPLUGIN/) {
push @headerDependency, $dep;
push @dependencies, $dep;
} else {
Foswiki::Plugins::JQueryPlugin::Plugins::createPlugin($dep);
push @headerDependency, 'JQUERYPLUGIN::'.uc($dep);
push @dependencies, 'JQUERYPLUGIN::'.uc($dep);
}
}

Foswiki::Func::addToZone('head', "JQUERYPLUGIN::".uc($this->{name}), $header, join(', ', @headerDependency))
Foswiki::Func::addToZone('head', "JQUERYPLUGIN::".uc($this->{name}), $header, join(', ', @dependencies))
if $header;
Foswiki::Func::addToZone('body', "JQUERYPLUGIN::".uc($this->{name}), $footer, join(', ', @headerDependency))
Foswiki::Func::addToZone('body', "JQUERYPLUGIN::".uc($this->{name}), $footer, join(', ', @dependencies))
if $footer;

return 1;
Expand Down
12 changes: 4 additions & 8 deletions JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin/Plugins.pm
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,13 @@ sub init () {

# load jquery
my $jQuery = $Foswiki::cfg{JQueryPlugin}{JQueryVersion} || 'jquery-1.3.2';

my $footer = "<script type='text/javascript' src='%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/$jQuery.js'></script>\n";
my $footer = "<script type='text/javascript' src='%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/$jQuery.js'></script>";

# switch on noconflict mode
my $header = '';
if ($Foswiki::cfg{JQueryPlugin}{NoConflict}) {
$header .= "<script type='text/javascript' src='%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/jquery.noconflict.js'></script>\n";
}
$footer .= "\n<script type='text/javascript' src='%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/jquery.noconflict.js'></script>"
if $Foswiki::cfg{JQueryPlugin}{NoConflict};

Foswiki::Func::addToZone('head', 'JQUERYPLUGIN', "\n".$header) if $header;
Foswiki::Func::addToZone('body', 'JQUERYPLUGIN', "\n".$footer);
Foswiki::Func::addToZone('body', 'JQUERYPLUGIN', $footer);

# initial plugins
createPlugin('Foswiki'); # this one is needed anyway
Expand Down
20 changes: 0 additions & 20 deletions JQueryPlugin/pub/System/JQueryPlugin/i18n/jquery-ui-i18n.js

This file was deleted.

388 changes: 0 additions & 388 deletions JQueryPlugin/pub/System/JQueryPlugin/jquery-1.2.6.js

This file was deleted.

443 changes: 0 additions & 443 deletions JQueryPlugin/pub/System/JQueryPlugin/jquery-1.3.2.js

This file was deleted.

443 changes: 0 additions & 443 deletions JQueryPlugin/pub/System/JQueryPlugin/jquery-1.3.2p1.js

This file was deleted.

469 changes: 0 additions & 469 deletions JQueryPlugin/pub/System/JQueryPlugin/jquery-1.4.1.js

This file was deleted.

388 changes: 0 additions & 388 deletions JQueryPlugin/pub/System/JQueryPlugin/jquery.js

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit be150b8

Please sign in to comment.