|
|
@ -704,11 +704,13 @@ function replyTextInput(event) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($.Options.postPreview.val) { |
|
|
|
if (textArea[0].value.length) |
|
|
|
if (textArea[0].value.length) |
|
|
|
textAreaForm.find('#post-preview').html(htmlFormatMsg(textArea[0].value, [])).show(); |
|
|
|
textAreaForm.find('#post-preview').html(htmlFormatMsg(textArea[0].value, [])).show(); |
|
|
|
else |
|
|
|
else |
|
|
|
textAreaForm.find('#post-preview').html('').hide(); |
|
|
|
textAreaForm.find('#post-preview').html('').hide(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function getPostSplitingPML() { |
|
|
|
function getPostSplitingPML() { |
|
|
|
if (splitedPostsCount > 1) { |
|
|
|
if (splitedPostsCount > 1) { |
|
|
@ -1276,9 +1278,7 @@ function postSubmit(e, oldLastPostId) { |
|
|
|
var remainingCount = tweetForm.find('.post-area-remaining'); |
|
|
|
var remainingCount = tweetForm.find('.post-area-remaining'); |
|
|
|
remainingCount.text(140); |
|
|
|
remainingCount.text(140); |
|
|
|
|
|
|
|
|
|
|
|
if ($this.parents('.modal-wrapper').length) |
|
|
|
if ($this.parents('.prompt-wrapper').length) |
|
|
|
closeModal(); |
|
|
|
|
|
|
|
else if ($this.parents('.prompt-wrapper').length) |
|
|
|
|
|
|
|
closeModalHandler('.prompt-wrapper'); |
|
|
|
closeModalHandler('.prompt-wrapper'); |
|
|
|
|
|
|
|
|
|
|
|
if ($this.closest('.post-area,.post-reply-content')) { |
|
|
|
if ($this.closest('.post-area,.post-reply-content')) { |
|
|
|