From cc80d41964a9a0ea6d28056086a3bc217f4d7d7c Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 3 Aug 2023 19:36:02 -0400 Subject: [PATCH] Cleaned up the watchers Modals --- js/ticket_add_remove_watchers.js | 1 + post/ticket.php | 2 +- ticket_add_modal.php | 4 ++-- ticket_edit_modal.php | 6 ++++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/js/ticket_add_remove_watchers.js b/js/ticket_add_remove_watchers.js index 1bcc8aa3..50224e73 100644 --- a/js/ticket_add_remove_watchers.js +++ b/js/ticket_add_remove_watchers.js @@ -14,6 +14,7 @@ function addWatcher(button) { textField.type = "email"; textField.className = "form-control"; textField.name = "watchers[]"; + textField.placeholder = "Enter an email"; var removeButtonWrapper = document.createElement("div"); removeButtonWrapper.className = "input-group-append"; diff --git a/post/ticket.php b/post/ticket.php index 17f32caf..77f34e52 100644 --- a/post/ticket.php +++ b/post/ticket.php @@ -330,7 +330,7 @@ if (isset($_POST['add_ticket_reply'])) { // Also Email all the watchers $sql_watchers = mysqli_query($mysqli, "SELECT watcher_email FROM ticket_watchers WHERE watcher_ticket_id = $ticket_id"); - $body .= "

----------------------------------------
YOU ARE RECEIVING THIS EMAIL BECAUSE YOU ARE A WATCHER"; + $body .= "

----------------------------------------
DO NOT REPLY - YOU ARE RECEIVING THIS EMAIL BECAUSE YOU ARE A WATCHER"; while ($row = mysqli_fetch_array($sql_watchers)) { $watcher_email = sanitizeInput($row['watcher_email']); diff --git a/ticket_add_modal.php b/ticket_add_modal.php index 49ed6f40..4d7665d1 100644 --- a/ticket_add_modal.php +++ b/ticket_add_modal.php @@ -161,8 +161,8 @@
- -
+ +
diff --git a/ticket_edit_modal.php b/ticket_edit_modal.php index 1f16fe93..055fc3cf 100644 --- a/ticket_edit_modal.php +++ b/ticket_edit_modal.php @@ -135,9 +135,10 @@
- + -
+
+ +