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. 10
      js/interface_common.js

10
js/interface_common.js

@ -704,10 +704,12 @@ function replyTextInput(event) {
} }
} }
if (textArea[0].value.length) if ($.Options.postPreview.val) {
textAreaForm.find('#post-preview').html(htmlFormatMsg(textArea[0].value, [])).show(); if (textArea[0].value.length)
else textAreaForm.find('#post-preview').html(htmlFormatMsg(textArea[0].value, [])).show();
textAreaForm.find('#post-preview').html('').hide(); else
textAreaForm.find('#post-preview').html('').hide();
}
} }
function getPostSplitingPML() { function getPostSplitingPML() {

Loading…
Cancel
Save