Skip to content

Commit a295194

Browse files
committed
clean up ex app a bit
1 parent c3342ed commit a295194

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/index.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ <h5 class="mb-0">
405405
type="color"
406406
id="defaultBranchColor"
407407
class="skip"
408-
value="#ccc"
408+
value="#cccccc"
409409
>
410410
</div>
411411
<div class="form-group">
@@ -804,7 +804,6 @@ <h5 class="modal-title" id="exportModalLabel">Export</h5>
804804
});
805805

806806
d3.select("#highlightLeaves").on("input", function() {
807-
// console.log("tree", tree.getNodeGUIDs(this.value));
808807
if (d3.select("#highlightLeaves").property("checked")) {
809808
tree.setColorOptions({
810809
nodeColorMode: "list",
@@ -815,6 +814,9 @@ <h5 class="modal-title" id="exportModalLabel">Export</h5>
815814
nodeList: tree.getNodeGUIDs(true)
816815
})
817816
} else {
817+
if (d3.select("#highlightBranches").property("checked")) {
818+
d3.select("#highlightBranches").property("checked", false);
819+
}
818820
tree.setColorOptions({
819821
nodeColorMode: "none",
820822
branchColorMode: d3.select("#highlightBranches").property("checked") ? "monophyletic" : "none",
@@ -831,7 +833,7 @@ <h5 class="modal-title" id="exportModalLabel">Export</h5>
831833
if (!d3.select("#highlightLeaves").property("checked")) {
832834
d3.select("#highlightLeaves").property("checked", true);
833835
}
834-
setColorOptions({
836+
tree.setColorOptions({
835837
nodeColorMode: "list",
836838
branchColorMode: "monophyletic",
837839
defaultNodeColor: d3.select("#defaultNodeColor").node().value,
@@ -840,7 +842,7 @@ <h5 class="modal-title" id="exportModalLabel">Export</h5>
840842
nodeList: tree.getNodeGUIDs(true)
841843
})
842844
} else {
843-
setColorOptions({
845+
tree.setColorOptions({
844846
nodeColorMode: d3.select("#highlightLeaves").property("checked") ? "list" : "none",
845847
branchColorMode: "none",
846848
defaultNodeColor: d3.select("#defaultNodeColor").node().value,

0 commit comments

Comments
 (0)