Use javascript_tag.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10371 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-09-11 17:01:45 +00:00
parent 818f3564fa
commit a3d0e82552
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<script type="text/javascript" charset="utf-8">
<%= javascript_tag do %>
function revisionGraphHandler(){
drawRevisionGraph(
document.getElementById('holder'),
@ -8,7 +8,8 @@ function revisionGraphHandler(){
}
$(document).ready(revisionGraphHandler);
$(window).resize(revisionGraphHandler);
</script>
<% end %>
<div id="holder" class="revision-graph"></div>
<% content_for :header_tags do %>