Browse Source

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

master
Simon Grim 9 years ago
parent
commit
c3e1f03c00
  1. 2
      js/interface_common.js

2
js/interface_common.js

@ -704,11 +704,13 @@ function replyTextInput(event) { @@ -704,11 +704,13 @@ function replyTextInput(event) {
}
}
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() {
if (splitedPostsCount > 1) {

Loading…
Cancel
Save