Skip to content

Commit

Permalink
Item11247: perltidy
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/RestPlugin@13033 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Nov 9, 2011
1 parent 57ab516 commit 33c7caa
Show file tree
Hide file tree
Showing 3 changed files with 190 additions and 118 deletions.
14 changes: 7 additions & 7 deletions lib/Foswiki/Plugins/RestPlugin.pm
Expand Up @@ -34,14 +34,14 @@ sub initPlugin {
function => 'query',
context => { query => 1 },
};


# Add the JS module to the page. Note that this is *not*
# incorporated into the foswikilib.js because that module
# is conditionally loaded under the control of the
# templates, and we have to be *sure* it gets loaded.
my $src = $Foswiki::Plugins::SESSION->{prefs}->getPreference('FWSRC') || '';
$Foswiki::Plugins::SESSION->addToZone( 'head', 'JavascriptFiles/strikeone', <<JS );
# Add the JS module to the page. Note that this is *not*
# incorporated into the foswikilib.js because that module
# is conditionally loaded under the control of the
# templates, and we have to be *sure* it gets loaded.
my $src = $Foswiki::Plugins::SESSION->{prefs}->getPreference('FWSRC') || '';
$Foswiki::Plugins::SESSION->addToZone( 'head', 'JavascriptFiles/strikeone',
<<JS );
<script type="text/javascript" src="$Foswiki::cfg{PubUrlPath}/$Foswiki::cfg{SystemWebName}/JavascriptFiles/strikeone$src.js"></script>
JS

Expand Down
10 changes: 10 additions & 0 deletions lib/Foswiki/Plugins/RestPlugin.pm.bak
Expand Up @@ -34,6 +34,16 @@ sub initPlugin {
function => 'query',
context => { query => 1 },
};


# Add the JS module to the page. Note that this is *not*
# incorporated into the foswikilib.js because that module
# is conditionally loaded under the control of the
# templates, and we have to be *sure* it gets loaded.
my $src = $Foswiki::Plugins::SESSION->{prefs}->getPreference('FWSRC') || '';
$Foswiki::Plugins::SESSION->addToZone( 'head', 'JavascriptFiles/strikeone', <<JS );
<script type="text/javascript" src="$Foswiki::cfg{PubUrlPath}/$Foswiki::cfg{SystemWebName}/JavascriptFiles/strikeone$src.js"></script>
JS

return 1;
}
Expand Down

0 comments on commit 33c7caa

Please sign in to comment.