2017-01-10 18:02:20 -05:00
|
|
|
/* 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';
|
2016-12-14 00:26:26 -05:00
|
|
|
|
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;
|
|
|
|
})();
|