From 24dcd7df47e401f99c5c9311d8aa3632dff9b4da Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 21 Sep 2016 11:14:32 +0800 Subject: [PATCH] FIX: 'quote reply' button not showing when an emoji is included. --- app/assets/javascripts/discourse/lib/utilities.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/utilities.js.es6 b/app/assets/javascripts/discourse/lib/utilities.js.es6 index a756e896d39..7025d1ed24e 100644 --- a/app/assets/javascripts/discourse/lib/utilities.js.es6 +++ b/app/assets/javascripts/discourse/lib/utilities.js.es6 @@ -111,7 +111,7 @@ export function selectedText() { const $div = $(div); // Find all emojis and replace with its title attribute. - $div.find('img.emoji').replaceWith(() => this.title); + $div.find('img.emoji').replaceWith(function() { return this.title }); $('.clicks', $div).remove(); const text = div.textContent || div.innerText || "";