Fixed #1509 by converting the entities in js
Converted BranchGraph to some sort of Class
This commit is contained in:
parent
12b4bb5946
commit
40576b8709
2 changed files with 178 additions and 123 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue