get rid of metamorph

This commit is contained in:
Sam 2013-03-24 18:13:03 -07:00
parent 4cc1b88d91
commit 3f0251dc63
2 changed files with 14 additions and 1 deletions

View File

@ -48,7 +48,7 @@
<div class='topic-body span14'> <div class='topic-body span14'>
<div {{bindAttr class="showUserReplyTab:avoid-tab view.repliesHidden:bottom-round :contents :regular view.extraClass"}}> <div {{bindAttr class="showUserReplyTab:avoid-tab view.repliesHidden:bottom-round :contents :regular view.extraClass"}}>
{{view Discourse.PrependPostView postBinding="this"}} {{view Discourse.PrependPostView postBinding="this"}}
<div class='cooked'>{{{cooked}}}</div> {{view Discourse.RawDivView class="cooked" contentBinding="cooked"}}
{{view Discourse.PostMenuView postBinding="this" postViewBinding="view"}} {{view Discourse.PostMenuView postBinding="this" postViewBinding="view"}}
</div> </div>
{{view Discourse.RepliesView contentBinding="replies" postViewBinding="view"}} {{view Discourse.RepliesView contentBinding="replies" postViewBinding="view"}}

View File

@ -0,0 +1,13 @@
// used to render a div with unescaped contents
Discourse.RawDivView = Ember.View.extend({
render: function(buffer) {
buffer.push(this.get('content'));
},
contentChanged: function() {
this.rerender();
}.observes('content')
});