From 3badb55019458541a7cfe97f199c9a949088d0aa Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Feb 01 2016 11:35:28 +0000 Subject: fixed emoji preview in issue comment #662 --- diff --git a/pagure/templates/issue.html b/pagure/templates/issue.html index eb99985..8d0df45 100644 --- a/pagure/templates/issue.html +++ b/pagure/templates/issue.html @@ -536,7 +536,8 @@ $( document ).ready(function() { }, dataType: 'html', success: function(res) { - $( "#preview" ).html(res); + var preview = emojione.toImage(res) + $( "#preview" ).html(preview); $( "#previewinmarkdown" ).removeClass("inactive"); $( "#previewinmarkdown" ).addClass("active"); $( "#comment" ).hide(); @@ -559,4 +560,3 @@ $( document ).ready(function() { }); {% endblock %} -