fix post preview to don't do it if it is turned off

This commit is contained in:
Simon Grim 2015-07-29 17:13:32 +05:00
parent c4e0b265f4
commit c3e1f03c00

View File

@ -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) {