()
| 653 | } |
| 654 | |
| 655 | function updateButtons() { |
| 656 | const enable = (search.value != '' || getSelection().size != 0); |
| 657 | if (buttonsEnabled == enable) return; |
| 658 | buttonsEnabled = enable; |
| 659 | for (const id of ['focus', 'ignore', 'hide', 'show', 'show-from']) { |
| 660 | const link = document.getElementById(id); |
| 661 | if (link != null) { |
| 662 | link.classList.toggle('disabled', !enable); |
| 663 | } |
| 664 | } |
| 665 | } |
| 666 | |
| 667 | // Initialize button states |
| 668 | updateButtons(); |
no test coverage detected
searching dependent graphs…