Fixed #1509 by converting the entities in js

Converted BranchGraph to some sort of Class
This commit is contained in:
Koen Punt 2012-12-05 00:57:21 +01:00
parent 12b4bb5946
commit 40576b8709
2 changed files with 178 additions and 123 deletions

View file

@ -2,13 +2,14 @@
%br
.graph_holder
%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
:javascript
var chunk1={commits:#{@commits_json}};
var days=#{@days_json};
initGraph();
var commits = #{@commits_json}
, days = #{@days_json};
var branch_graph = new BranchGraph(days, commits);
$(function(){
branchGraph($("#holder")[0]);
branch_graph.buildGraph($("#holder")[0]);
GraphNav.init();
});