2017-01-10 18:02:20 -05:00
|
|
|
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, quotes, no-var, vars-on-top, camelcase, comma-dangle, consistent-return, max-len */
|
2016-12-14 00:26:26 -05:00
|
|
|
/* global ShortcutsNetwork */
|
|
|
|
|
2017-03-03 19:21:39 -05:00
|
|
|
import Network from './network';
|
2016-07-24 16:45:11 -04:00
|
|
|
|
2017-03-03 19:23:15 -05:00
|
|
|
$(function() {
|
|
|
|
if (!$(".network-graph").length) return;
|
2016-10-28 07:38:14 -04:00
|
|
|
|
2017-03-03 19:23:15 -05:00
|
|
|
var network_graph;
|
|
|
|
network_graph = new Network({
|
|
|
|
url: $(".network-graph").attr('data-url'),
|
|
|
|
commit_url: $(".network-graph").attr('data-commit-url'),
|
|
|
|
ref: $(".network-graph").attr('data-ref'),
|
|
|
|
commit_id: $(".network-graph").attr('data-commit-id')
|
2016-07-24 16:45:11 -04:00
|
|
|
});
|
2017-03-03 19:23:15 -05:00
|
|
|
return new ShortcutsNetwork(network_graph.branch_graph);
|
|
|
|
});
|