(bytes)
| 14598 | |
| 14599 | // Parent Model Button Click Handler |
| 14600 | document.querySelectorAll('.add-parent-button, #add-new-parent-button').forEach(button => { |
| 14601 | button?.addEventListener('click', () => { |
| 14602 | const dialog = document.getElementById('new-parent-dialog'); |
| 14603 | const input = document.getElementById('new-parent-name'); |
| 14604 | |
| 14605 | // Reset form and input state |
| 14606 | dialog.querySelector('form').reset(); |
| 14607 | input.value = ''; |
| 14608 | input.disabled = false; |
| 14609 | input.readOnly = false; |
no outgoing calls
no test coverage detected