From 1fb2898e10a6b08a21f4f81651933b325dcef954 Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Feb 01 2016 12:30:51 +0000 Subject: fixed emoji preview for PR #662 --- diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 8a33669..a22f7e8 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -654,7 +654,8 @@ function setup_reply_btns() { }, dataType: 'html', success: function(res) { - $( "#preview" ).html(res); + var preview = emojione.toImage(res) + $( "#preview" ).html(preview); $( "#previewinmarkdown" ).removeClass("inactive"); $( "#previewinmarkdown" ).addClass("active"); $( "#comment" ).hide(); @@ -907,4 +908,3 @@ source.addEventListener('message', function(e) { {% endif %} {% endblock %} -