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

20 lines
547 B
JavaScript
Raw Normal View History

2017-08-17 22:00:37 +05:30
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, quotes, quote-props, prefer-template, comma-dangle, max-len */
2016-09-13 17:45:13 +05:30
2017-08-17 22:00:37 +05:30
import BranchGraph from './branch_graph';
2016-09-13 17:45:13 +05:30
2017-08-17 22:00:37 +05:30
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-09-13 17:45:13 +05:30
2017-08-17 22:00:37 +05:30
return Network;
})();