diff --git a/people/static/js/network.js b/people/static/js/network.js index 06849a1..8309cc5 100644 --- a/people/static/js/network.js +++ b/people/static/js/network.js @@ -100,6 +100,9 @@ function get_network() { style: network_style }); + // Add pan + zoom widget with cytoscape-panzoom + cy.panzoom(); + // Load people and add to graph var person_set = JSON.parse(document.getElementById('person-set-data').textContent); diff --git a/people/templates/people/network.html b/people/templates/people/network.html index 12cbb08..ee01a98 100644 --- a/people/templates/people/network.html +++ b/people/templates/people/network.html @@ -1,5 +1,12 @@ {% extends 'base.html' %} +{% block extra_head %} + +{% endblock %} + {% block content %}