mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fixes bug with creating new topic due to edit text changing.
This commit is contained in:
parent
40c27ff3cf
commit
9d4c8ed323
@ -109,6 +109,7 @@ Discourse.Composer = Discourse.Model.extend({
|
|||||||
var postNumber = this.get('post.post_number');
|
var postNumber = this.get('post.post_number');
|
||||||
postLink = "<a href='" + (topic.get('url')) + "/" + postNumber + "'>" +
|
postLink = "<a href='" + (topic.get('url')) + "/" + postNumber + "'>" +
|
||||||
Em.String.i18n("post.post_number", { number: postNumber }) + "</a>";
|
Em.String.i18n("post.post_number", { number: postNumber }) + "</a>";
|
||||||
|
topicLink = "<a href='" + (topic.get('url')) + "'> " + (Handlebars.Utils.escapeExpression(topic.get('title'))) + "</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
var replyAvatar, topicLink;
|
var replyAvatar, topicLink;
|
||||||
@ -117,8 +118,6 @@ Discourse.Composer = Discourse.Model.extend({
|
|||||||
username: this.get('post.username'),
|
username: this.get('post.username'),
|
||||||
size: 'tiny'
|
size: 'tiny'
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
topicLink = "<a href='" + (topic.get('url')) + "'> " + (Handlebars.Utils.escapeExpression(topic.get('title'))) + "</a>";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (this.get('action')) {
|
switch (this.get('action')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user