get rid of metamorph
This commit is contained in:
parent
4cc1b88d91
commit
3f0251dc63
|
@ -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"}}
|
||||||
|
|
|
@ -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')
|
||||||
|
|
||||||
|
});
|
Loading…
Reference in New Issue