(id, disabled)
| 402 | } |
| 403 | |
| 404 | function updateHistoryButton(id, disabled) { |
| 405 | const buttons = new Set(); |
| 406 | |
| 407 | for (const $container of [ |
| 408 | quickTools.$footer, |
| 409 | quickTools.$row1, |
| 410 | quickTools.$row2, |
| 411 | ]) { |
| 412 | $container?.querySelectorAll(`[data-id="${id}"]`)?.forEach(($button) => { |
| 413 | buttons.add($button); |
| 414 | }); |
| 415 | } |
| 416 | |
| 417 | buttons.forEach(($button) => { |
| 418 | $button.disabled = disabled; |
| 419 | $button.setAttribute("aria-disabled", String(disabled)); |
| 420 | }); |
| 421 | } |
no test coverage detected