Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
BUGFIX: Failed message send
Browse files Browse the repository at this point in the history
Previously, if user selected "reply" to a message, then changed it to
"forward" (and vice versa), message send would fail. This fixes issue.
  • Loading branch information
judsonmitchell committed Aug 29, 2017
1 parent 84f2769 commit 4cab9ed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions html/js/Messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,10 @@ $(document).ready(function() {
event.preventDefault();
var clickType = $(this).attr('class');
var h;

//If the user has previously entered reply/forward, then changed mind
$(this).parent().siblings('div.msg_reply_text').show().find('textarea').removeClass();

//add choice of recipients if forward is selected
if (clickType === 'forward') {
h = $(this).closest('div.msg').height() + 300;
Expand All @@ -347,6 +351,9 @@ $(document).ready(function() {
//make room for textarea
h = $(this).closest('div.msg').height() + 250;
$(this).closest('div.msg').height(h);

//in case user had previously selected forward, then just decided to reply
$(this).parent().siblings('div.msg_forward').hide();
//add textarea
$(this).parent().siblings('div.msg_reply_text').show().find('textarea').addClass(clickType);
}
Expand Down
2 changes: 1 addition & 1 deletion html/js/Messages.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4cab9ed

Please sign in to comment.