mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
update preview if format is changed, resolves #60
This commit is contained in:
parent
5ec20c1bc2
commit
6144e73405
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user