Commit 40576b87 authored by Koen Punt's avatar Koen Punt

Fixed #1509 by converting the entities in js

Converted BranchGraph to some sort of Class
parent 12b4bb59
...@@ -2,13 +2,14 @@ ...@@ -2,13 +2,14 @@
%br %br
.graph_holder .graph_holder
%h4 %h4
%small You can move around the graph by using arrow keys. %small You can move around the graph by using the arrow keys.
#holder.graph #holder.graph
:javascript :javascript
var chunk1={commits:#{@commits_json}}; var commits = #{@commits_json}
var days=#{@days_json}; , days = #{@days_json};
initGraph(); var branch_graph = new BranchGraph(days, commits);
$(function(){ $(function(){
branchGraph($("#holder")[0]); branch_graph.buildGraph($("#holder")[0]);
GraphNav.init(); GraphNav.init();
}); });
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment