debian-mirror-gitlab/app/assets/javascripts/network/network.js
2017-08-17 22:00:37 +05:30

19 lines
547 B
JavaScript

/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, quotes, quote-props, prefer-template, comma-dangle, max-len */
import BranchGraph from './branch_graph';
export default (function() {
function Network(opts) {
var vph;
$("#filter_ref").click(function() {
return $(this).closest('form').submit();
});
this.branch_graph = new BranchGraph($(".network-graph"), opts);
vph = $(window).height() - 250;
$('.network-graph').css({
'height': vph + 'px'
});
}
return Network;
})();