Fixes bug with creating new topic due to edit text changing.

This commit is contained in:
Robin Ward 2013-03-12 14:42:52 -04:00
parent 40c27ff3cf
commit 9d4c8ed323
1 changed files with 1 additions and 2 deletions

View File

@ -109,6 +109,7 @@ Discourse.Composer = Discourse.Model.extend({
var postNumber = this.get('post.post_number');
postLink = "<a href='" + (topic.get('url')) + "/" + postNumber + "'>" +
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;
@ -117,8 +118,6 @@ Discourse.Composer = Discourse.Model.extend({
username: this.get('post.username'),
size: 'tiny'
});
} else {
topicLink = "<a href='" + (topic.get('url')) + "'> " + (Handlebars.Utils.escapeExpression(topic.get('title'))) + "</a>";
}
switch (this.get('action')) {