Skip to content

Commit

Permalink
Moving add on javascript declarations after jquery, in case they depe…
Browse files Browse the repository at this point in the history
…nd on jquery.
  • Loading branch information
walter committed May 26, 2012
1 parent 3a9a677 commit f349ca9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/layouts/application.rhtml
Expand Up @@ -46,15 +46,15 @@
<%= oembed_provider_links -%>
<% end %>
<%# this goes before other css and javascript incase we want to overwrite the definitions locally in themes %>
<%= yield :add_on_scripts_and_links %>
<%# Include TinyMCE before other JS to avoid problems
# TinyMCE is not compatible with bundle_fu %>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>

<%= javascript_tag('jQuery.noConflict();') -%>
<%# this goes before other css and javascript incase we want to overwrite the definitions locally in themes %>
<%= yield :add_on_scripts_and_links %>
<%= include_tiny_mce_if_needed({
:content_css => "/stylesheets/cache/#{@theme}_theme.css",
:extended_valid_elements => (@site_admin ? EXTENDED_VALID_ELEMENTS : '')
Expand Down

0 comments on commit f349ca9

Please sign in to comment.