From 25d242dc8607dca2b8abd41f681cdd4e941f8649 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Mon, 12 Feb 2024 18:10:37 +0000 Subject: [PATCH] Enhance ticket reply button - Better logic on when the button should default to private/public - Fix the new plane icon not showing when the button was checked/unchecked --- js/ticket_button_respond_note.js | 2 +- ticket.php | 35 ++++++++++++++++++++++---------- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/js/ticket_button_respond_note.js b/js/ticket_button_respond_note.js index 3e4ce733..bc345a46 100644 --- a/js/ticket_button_respond_note.js +++ b/js/ticket_button_respond_note.js @@ -10,7 +10,7 @@ let respond = document.getElementById('ticket_add_reply'); checkbox.addEventListener('change', e => { if (e.target.checked) { // Public reply - respond.innerHTML = "Respond"; + respond.innerHTML = "Respond"; } else { // Internal note diff --git a/ticket.php b/ticket.php index da185ed0..21750313 100644 --- a/ticket.php +++ b/ticket.php @@ -307,7 +307,7 @@ if (isset($_GET['ticket_id'])) {
- +
@@ -388,22 +388,35 @@ if (isset($_GET['ticket_id'])) {
+ -
- - + > +
- -
- +
@@ -803,10 +816,10 @@ if (isset($_GET['ticket_id'])) { - - @@ -855,7 +868,7 @@ if (isset($_GET['ticket_id'])) { - @@ -956,4 +969,4 @@ require_once "footer.php"; - \ No newline at end of file +