debian-mirror-gitlab/app/assets/javascripts/network/network_bundle.js

18 lines
625 B
JavaScript
Raw Normal View History

2017-08-17 22:00:37 +05:30
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, quotes, no-var, vars-on-top, camelcase, comma-dangle, consistent-return, max-len */
/* global ShortcutsNetwork */
2016-09-13 17:45:13 +05:30
2017-08-17 22:00:37 +05:30
import Network from './network';
$(function() {
if (!$(".network-graph").length) return;
2016-09-13 17:45:13 +05:30
2017-08-17 22:00:37 +05:30
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')
});
return new ShortcutsNetwork(network_graph.branch_graph);
});