Skip to content

Commit

Permalink
Item8272: compressing JS
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/SkillsPlugin@4864 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Sep 13, 2009
1 parent aa33b77 commit 153ca7d
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Foswiki/Plugins/SkillsPlugin.pm
Expand Up @@ -939,6 +939,8 @@ sub _addHeads {
my $urlPath = '%PUBURLPATH%/%SYSTEMWEB%/SkillsPlugin';
my $restPath = '%SCRIPTURL{"rest"}%/SkillsPlugin';

my $src = DEBUG ? '_src' : '';

# add to head
# FIXME: use the 'requires' parameter? for YUI?
Foswiki::Func::addToHEAD( 'SKILLSPLUGIN_JS', <<THIS);
Expand Down Expand Up @@ -989,9 +991,9 @@ var SkillsPlugin = {
}
}
</script>
<script src="$urlPath/main.js" language="javascript" type="text/javascript">
<script src="$urlPath/main$src.js" language="javascript" type="text/javascript">
</script>
<script src="$urlPath/$form.js" language="javascript" type="text/javascript">
<script src="$urlPath/$form$src.js" language="javascript" type="text/javascript">
</script>
THIS
}
Expand Down
5 changes: 5 additions & 0 deletions lib/Foswiki/Plugins/SkillsPlugin/MANIFEST
Expand Up @@ -19,6 +19,11 @@ pub/System/SkillsPlugin/browseSkills.js 0644
pub/System/SkillsPlugin/editAllSkills.js 0644
pub/System/SkillsPlugin/main.js 0644
pub/System/SkillsPlugin/searchSkills.js 0644
pub/System/SkillsPlugin/addEditSkills_src.js 0644
pub/System/SkillsPlugin/browseSkills_src.js 0644
pub/System/SkillsPlugin/editAllSkills_src.js 0644
pub/System/SkillsPlugin/main_src.js 0644
pub/System/SkillsPlugin/searchSkills_src.js 0644
pub/System/SkillsPlugin/skills_screenshot_full.png 0644
pub/System/SkillsPlugin/skills_screenshot_search.png 0644
pub/System/SkillsPlugin/skills_screenshot_thumb.png 0644
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 153ca7d

Please sign in to comment.