delete modal closing after post sending, no reason to do it

This commit is contained in:
Simon Grim 2015-07-29 19:53:20 +05:00
parent c3e1f03c00
commit 4a9069189f

View File

@ -1278,9 +1278,7 @@ function postSubmit(e, oldLastPostId) {
var remainingCount = tweetForm.find('.post-area-remaining');
remainingCount.text(140);
if ($this.parents('.modal-wrapper').length)
closeModal();
else if ($this.parents('.prompt-wrapper').length)
if ($this.parents('.prompt-wrapper').length)
closeModalHandler('.prompt-wrapper');
if ($this.closest('.post-area,.post-reply-content')) {