Skip to content
Snippets Groups Projects
Commit 98df4837 authored by Pregmodder's avatar Pregmodder
Browse files

Merge remote-tracking branch 'upstream/pregmod-master' into pregmod-master

parents 9f4dfc17 c348ff0e
No related branches found
No related tags found
1 merge request!1240Pregmod v1021-245
...@@ -27,7 +27,10 @@ window.renderFamilyTree = function(slaves, filterID) { ...@@ -27,7 +27,10 @@ window.renderFamilyTree = function(slaves, filterID) {
var ftreeWidth,ftreeHeight; var ftreeWidth,ftreeHeight;
var chartWidth, chartHeight; var chartWidth, chartHeight;
var margin; var margin;
var svg = d3.select('#familyTree').append('svg'); d3.select('#ftree-canvas').remove();
var svg = d3.select('#familyTree')
.append('svg')
.attr('id','ftree-canvas');
var chartLayer = svg.append('g').classed('chartLayer', true); var chartLayer = svg.append('g').classed('chartLayer', true);
var range = 100; var range = 100;
......
...@@ -877,7 +877,10 @@ ...@@ -877,7 +877,10 @@
<<replace '#fatherName'>><<parentName "father">><</replace>> <<replace '#fatherName'>><<parentName "father">><</replace>>
<<replace '#sameMotherNames'>><<listOfSlavesWithSameParent 'mother'>><</replace>> <<replace '#sameMotherNames'>><<listOfSlavesWithSameParent 'mother'>><</replace>>
<<replace '#sameFatherNames'>><<listOfSlavesWithSameParent 'father'>><</replace>> <<replace '#sameFatherNames'>><<listOfSlavesWithSameParent 'father'>><</replace>>
<<run updateFamilyTree($activeSlave, $slaves, $PC)>> /* <<run updateFamilyTree($activeSlave, $slaves, $PC)>> */
<<set _tSlaveList = [$activeSlave]>>
<<set _tSlaveList.push.apply(_tSlaveList, $slaves)>>
<<run renderFamilyTree(_tSlaveList, $activeSlave.ID)>>
<</widget>> <</widget>>
/* First parameter is e.g. "father" or "mother" and second parameter is the ID to match */ /* First parameter is e.g. "father" or "mother" and second parameter is the ID to match */
...@@ -1074,9 +1077,13 @@ ...@@ -1074,9 +1077,13 @@
&nbsp;&nbsp;&nbsp;&nbsp;<span id="familySummary"><<Family>></span> &nbsp;&nbsp;&nbsp;&nbsp;<span id="familySummary"><<Family>></span>
<br> <br>
</div> </div>
<div id="graph"></div> /*<div id="graph"></div>
<<run updateFamilyTree($activeSlave, $slaves, $PC)>> <<run updateFamilyTree($activeSlave, $slaves, $PC)>>
<script>updateFamilyTree()</script> <script>updateFamilyTree()</script>*/
<div id="familyTree"></div>
<<set _tSlaveList = [$activeSlave]>>
<<set _tSlaveList.push.apply(_tSlaveList, $slaves)>>
<<run renderFamilyTree(_tSlaveList, $activeSlave.ID)>>
</div> </div>
<</widget>> <</widget>>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment