From e28fe0229c7c83fca883680c46d7777a955bd69a Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 25 Jul 2017 15:25:19 -0400 Subject: [PATCH] fixing js bug in the declined message email in the edit view file adding js that gets the current event notes before adding the declined message to the notes body so that the value and not just the text of the textarea can be set. --- views/admin/events/edit.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/views/admin/events/edit.html b/views/admin/events/edit.html index b84ae1c..23d32ca 100644 --- a/views/admin/events/edit.html +++ b/views/admin/events/edit.html @@ -1346,7 +1346,10 @@ if(reason_text){ $("#deniedReason").dialog("close"); - notes.append(" DENIED REASON: " + reason_text) + var content = " DENIED REASON: " + reason_text; + var current_notes = notes.val(); + notes.append(" DENIED REASON: " + reason_text); + notes.val(current_notes + content); $('#declinedMsg').val(reason_text); } else { reason.next().css("display", "block"); -- 2.17.1