fixing js bug in the declined message email in the edit view file
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 25 Jul 2017 19:25:19 +0000 (15:25 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 25 Jul 2017 19:25:19 +0000 (15:25 -0400)
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

index b84ae1c..23d32ca 100644 (file)
                     
                     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");