()
| 14731 | |
| 14732 | // Use the HTML dialog instead of Electron's dialog |
| 14733 | const tagDialog = document.getElementById('new-tag-dialog'); |
| 14734 | const newTagInput = document.getElementById('new-tag-name'); |
| 14735 | |
| 14736 | // Clear any previous input |
| 14737 | if (newTagInput) { |
| 14738 | newTagInput.value = ''; |
| 14739 | } |
| 14740 | |
| 14741 | // Store the source container ID on the dialog for reference when submitting |
| 14742 | tagDialog.setAttribute('data-source-container', sourceContainer); |
| 14743 | |
| 14744 | // Show the dialog |
| 14745 | tagDialog.showModal(); |
| 14746 | }); |
| 14747 | }); |
| 14748 | |
| 14749 | // Update the dialog submit handlers to use the stored dropdown IDs |
| 14750 | // Duplicate event listener removed - handled at line 9210 |
| 14751 | |
| 14752 | // Duplicate event listener removed - handled in DOMContentLoaded above |
| 14753 | |
| 14754 | // Parent Model Button Click Handler |
no test coverage detected