mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-13 00:18:15 +00:00
fix post preview to don't do it if it is turned off
This commit is contained in:
parent
c4e0b265f4
commit
c3e1f03c00
@ -704,10 +704,12 @@ function replyTextInput(event) {
|
||||
}
|
||||
}
|
||||
|
||||
if (textArea[0].value.length)
|
||||
textAreaForm.find('#post-preview').html(htmlFormatMsg(textArea[0].value, [])).show();
|
||||
else
|
||||
textAreaForm.find('#post-preview').html('').hide();
|
||||
if ($.Options.postPreview.val) {
|
||||
if (textArea[0].value.length)
|
||||
textAreaForm.find('#post-preview').html(htmlFormatMsg(textArea[0].value, [])).show();
|
||||
else
|
||||
textAreaForm.find('#post-preview').html('').hide();
|
||||
}
|
||||
}
|
||||
|
||||
function getPostSplitingPML() {
|
||||
|
Loading…
Reference in New Issue
Block a user