| 526 | |
| 527 | class CallTreeView { |
| 528 | constructor() { |
| 529 | this.element = $("calltree"); |
| 530 | this.treeElement = $("calltree-table"); |
| 531 | this.selectAttribution = $("calltree-attribution"); |
| 532 | this.selectCategories = $("calltree-categories"); |
| 533 | this.selectSort = $("calltree-sort"); |
| 534 | |
| 535 | this.selectAttribution.onchange = () => { |
| 536 | main.setCallTreeAttribution(this.selectAttribution.value); |
| 537 | }; |
| 538 | |
| 539 | this.selectCategories.onchange = () => { |
| 540 | main.setCallTreeCategories(this.selectCategories.value); |
| 541 | }; |
| 542 | |
| 543 | this.selectSort.onchange = () => { |
| 544 | main.setCallTreeSort(this.selectSort.value); |
| 545 | }; |
| 546 | |
| 547 | this.currentState = null; |
| 548 | } |
| 549 | |
| 550 | sortFromId(id) { |
| 551 | switch (id) { |