add hide post preview in directMsgSubmit() too

This commit is contained in:
Simon Grim 2015-07-25 12:16:18 +05:00
parent b3a281a693
commit 27256788ed

View File

@ -94,6 +94,8 @@ function directMsgSubmit(e) {
var replyText = $(this).closest('.post-area-new').find('textarea');
replyText.siblings('#post-preview').hide();
newDirectMsg(replyText.val(), $('.directMessages').attr('data-dm-screen-name'));
replyText.val('');