Add new class to expanded content so it can be styled

This commit is contained in:
Robin Ward 2014-04-05 15:01:28 -04:00
parent 29541501ab
commit 06913474b4
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ Discourse.Post = Discourse.Model.extend({
expand: function() { expand: function() {
var self = this; var self = this;
return Discourse.ajax("/posts/" + this.get('id') + "/expand-embed").then(function(post) { return Discourse.ajax("/posts/" + this.get('id') + "/expand-embed").then(function(post) {
self.set('cooked', post.cooked); self.set('cooked', "<section class='expanded-embed'>" + post.cooked + "</section>" );
}); });
}, },