Browse Source

hide post preview on textarea focus out

master
Simon Grim 9 years ago
parent
commit
6028a58777
  1. 1
      js/interface_common.js

1
js/interface_common.js

@ -597,6 +597,7 @@ function posPostPreview(event) { @@ -597,6 +597,7 @@ function posPostPreview(event) {
postPreview.width(textArea.width());
postPreview.width(postPreview.width() // width is not accurate if we do it with textArea.width() directly, don't know why
- postPreview.css('padding-left') - postPreview.css('padding-right'));
textArea.on('focusout', function () {$(this).siblings('#post-preview').hide();});
}
if (textArea[0].value.length)
postPreview.html(htmlFormatMsg(textArea[0].value).html).show();

Loading…
Cancel
Save