diff --git a/js/privatebin.js b/js/privatebin.js index 2fb8a62f..4344efca 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -1290,6 +1290,10 @@ $(function() { var target = $(event.target); $('#pasteFormatter').val(target.data('format')); $('#pasteFormatterDisplay').text(target.text()); + + if (this.messagePreview.parent().hasClass('active')) { + this.viewPreview(event); + } }, /**