Moved the javascript includes in html head.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10370 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-09-11 16:59:30 +00:00
parent 745c5d053e
commit 818f3564fa
1 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,3 @@
<%= javascript_include_tag 'raphael.js' %>
<%= javascript_include_tag 'revision_graph.js' %>
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
function revisionGraphHandler(){ function revisionGraphHandler(){
drawRevisionGraph( drawRevisionGraph(
@ -12,3 +10,8 @@ $(document).ready(revisionGraphHandler);
$(window).resize(revisionGraphHandler); $(window).resize(revisionGraphHandler);
</script> </script>
<div id="holder" class="revision-graph"></div> <div id="holder" class="revision-graph"></div>
<% content_for :header_tags do %>
<%= javascript_include_tag 'raphael' %>
<%= javascript_include_tag 'revision_graph' %>
<% end %>