Explorar o código

update preview if format is changed, resolves #60

El RIDO %!s(int64=10) %!d(string=hai) anos
pai
achega
6144e73405
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      js/privatebin.js

+ 4 - 0
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);
+            }
         },
 
         /**