Skip to content

Commit

Permalink
Do not include jquery on the page if you are running in Melody, which…
Browse files Browse the repository at this point in the history
… includes jquery for you automatically. This preserves compat with Movable Type.
  • Loading branch information
byrnereese committed Feb 4, 2011
1 parent 9c85f74 commit 550c4bc
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/ThemeManager.plugin/config.yaml
Expand Up @@ -4,7 +4,7 @@ key: ThemeManager
author_link: http://endevver.com/
author_name: Endevver
description: 'A comprehensive theme management plugin!'
version: 0.10.9
version: 0.10.10
schema_version: 7
static_version: 6
l10n_class: ThemeManager::L10N
Expand Down
Expand Up @@ -897,7 +897,9 @@ sub xfrm_add_language {

my $old = q{<mt:setvarblock name="html_head" append="1">};
my $add = <<'HTML';
<mt:unless tag="ProductName" eq="Melody">
<script src="<mt:Var name="static_uri">jquery/jquery.js" type="text/javascript"></script>
</mt:unless>
<script type="text/javascript">
$(document).ready( function() {
// Expand upon the Template Sets dropdown with a visual chooser.
Expand Down
2 changes: 2 additions & 0 deletions addons/ThemeManager.plugin/tmpl/list_template.tmpl
Expand Up @@ -36,7 +36,9 @@
</mt:setvarblock>
<mt:setvarblock name="html_head" append="1">
<link rel="stylesheet" href="<mt:PluginStaticWebPath component="ThemeManager">css/app.css" type="text/css" />
<mt:unless tag="ProductName" eq="Melody">
<script type="text/javascript" src="<mt:Var name="static_uri">jquery/jquery.js"></script>
</mt:unless>
<script type="text/javascript">

$(document).ready( function() {
Expand Down
2 changes: 2 additions & 0 deletions addons/ThemeManager.plugin/tmpl/theme_dashboard.mtml
Expand Up @@ -6,7 +6,9 @@
<mt:SetVarBlock name="html_head" append="1">
<link rel="stylesheet" href="<mt:PluginStaticWebPath component="ThemeManager">css/app.css" type="text/css" />
<link rel="stylesheet" href="<mt:PluginStaticWebPath component="ThemeManager">css/docs.css" type="text/css" />
<mt:unless tag="ProductName" eq="Melody">
<script src="<mt:PluginStaticWebPath component="ThemeManager">js/jquery-1.4.2.min.js" type="text/javascript"></script>
</mt:unless>
<script src="<mt:PluginStaticWebPath component="ThemeManager">js/jquery.qtip-1.0.min.js" type="text/javascript"></script>
<script src="<mt:PluginStaticWebPath component="ThemeManager">js/jquery.history.js" type="text/javascript"></script>
<script src="<mt:PluginStaticWebPath component="ThemeManager">js/app.js" type="text/javascript"></script>
Expand Down
4 changes: 3 additions & 1 deletion addons/ThemeManager.plugin/tmpl/theme_setup.mtml
Expand Up @@ -3,7 +3,9 @@
<link rel="stylesheet" href="<mt:PluginStaticWebPath component="ThemeManager">css/app.css" type="text/css" />
<link rel="stylesheet" href="<mt:PluginStaticWebPath component="ConfigAssistant">css/app.css" type="text/css" />
<link rel="stylesheet" href="<mt:PluginStaticWebPath component="ConfigAssistant">colorpicker/css/colorpicker.css" type="text/css" />
<script src="<mt:Var name="static_uri">jquery/jquery.js" type="text/javascript"></script>
<mt:unless tag="ProductName" eq="Melody">
<script src="<mt:StaticWebPath>jquery/jquery.js" type="text/javascript"></script>
</mt:unless>
<script src="<mt:PluginStaticWebPath component="ConfigAssistant">js/app.js" type="text/javascript"></script>
<script src="<mt:PluginStaticWebPath component="ConfigAssistant">colorpicker/js/colorpicker.js" type="text/javascript"></script>
<script type="text/javascript">
Expand Down

0 comments on commit 550c4bc

Please sign in to comment.