mirror of
https://github.com/discourse/discourse.git
synced 2025-02-27 16:06:10 +00:00
FIX: escape emojis in topic selection modal
This commit is contained in:
parent
875703a750
commit
b117a9994b
@ -407,7 +407,7 @@ export default Ember.Controller.extend({
|
|||||||
|
|
||||||
if (currentTopic) {
|
if (currentTopic) {
|
||||||
buttons.push({
|
buttons.push({
|
||||||
"label": I18n.t("composer.reply_here") + "<br/><div class='topic-title overflow-ellipsis'>" + escapeExpression(currentTopic.get('title')) + "</div>",
|
"label": I18n.t("composer.reply_here") + "<br/><div class='topic-title overflow-ellipsis'>" + currentTopic.get('fancyTitle') + "</div>",
|
||||||
"class": "btn btn-reply-here",
|
"class": "btn btn-reply-here",
|
||||||
"callback": function() {
|
"callback": function() {
|
||||||
composer.set('topic', currentTopic);
|
composer.set('topic', currentTopic);
|
||||||
@ -418,7 +418,7 @@ export default Ember.Controller.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
buttons.push({
|
buttons.push({
|
||||||
"label": I18n.t("composer.reply_original") + "<br/><div class='topic-title overflow-ellipsis'>" + escapeExpression(this.get('model.topic.title')) + "</div>",
|
"label": I18n.t("composer.reply_original") + "<br/><div class='topic-title overflow-ellipsis'>" + this.get('model.topic.fancyTitle') + "</div>",
|
||||||
"class": "btn-primary btn-reply-on-original",
|
"class": "btn-primary btn-reply-on-original",
|
||||||
"callback": function() {
|
"callback": function() {
|
||||||
self.save(true);
|
self.save(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user