mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-09-13 14:52:21 +00:00
fix blur of the current textarea after submit of a twist
This commit is contained in:
parent
5ee1b4e5ee
commit
b440cb2600
@ -2514,9 +2514,10 @@ function postSubmit(e, oldLastPostId) {
|
|||||||
textArea.val('').attr('placeholder', polyglot.t('Your message was sent!'));
|
textArea.val('').attr('placeholder', polyglot.t('Your message was sent!'));
|
||||||
btnPostSubmit.closest('form').find('.post-area-remaining').text('');
|
btnPostSubmit.closest('form').find('.post-area-remaining').text('');
|
||||||
|
|
||||||
if (btnPostSubmit.closest('.post-area,.post-reply-content')) {
|
if (btnPostSubmit.closest('.post-area,.post-reply-content').length) {
|
||||||
$('.post-area-new').removeClass('open').find('textarea').blur();
|
btnPostSubmit.closest('.post-area-new').removeClass('open')
|
||||||
};
|
.find('textarea').blur();
|
||||||
|
}
|
||||||
textArea.data('unicodeConversionStack', []);
|
textArea.data('unicodeConversionStack', []);
|
||||||
textArea.data('disabledUnicodeRules', []);
|
textArea.data('disabledUnicodeRules', []);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user