gitlab-org--gitlab-foss/app/assets/javascripts/network/network.js

20 lines
547 B
JavaScript
Raw Normal View History

/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, quotes, quote-props, prefer-template, comma-dangle, max-len */
2017-03-03 19:15:57 -05:00
import BranchGraph from './branch_graph';
2017-03-03 19:21:39 -05:00
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'
});
}
2016-07-24 16:45:11 -04:00
2017-03-03 19:21:39 -05:00
return Network;
})();