Skip to content

Commit

Permalink
Fixes bug with creating new topic due to edit text changing.
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltrout committed Mar 12, 2013
1 parent 40c27ff commit 9d4c8ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/assets/javascripts/discourse/models/composer.js
Expand Up @@ -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;
Expand All @@ -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')) {
Expand Down

0 comments on commit 9d4c8ed

Please sign in to comment.