Fix codesmell

This commit is contained in:
Marcus Hill 2023-05-14 20:19:07 +01:00
parent 1057481039
commit 02ced0dbbd
1 changed files with 2 additions and 2 deletions

View File

@ -1,10 +1,10 @@
// Ticket.php - Changes the wording of the "Respond" button to "Add note" if reply is not a public update (based on checkbox)
// Get Internal/Public Checkbox
checkbox = document.getElementById('ticket_reply_type_checkbox');
let checkbox = document.getElementById('ticket_reply_type_checkbox');
// Get Respond button
respond = document.getElementById('ticket_add_reply');
let respond = document.getElementById('ticket_add_reply');
// When checkbox is checked/unchecked, update button wording
checkbox.addEventListener('change', e => {