mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-05-03 01:15:48 -04:00
Remove RawDivView and use regular handlebars
This commit is contained in:
parent
b11e1f8b40
commit
e7f349ff0f
2 changed files with 1 additions and 12 deletions
app/assets/javascripts/discourse
|
@ -50,7 +50,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
{{view Discourse.RawDivView class="cooked" contentBinding="cooked"}}
|
<div class='cooked'>{{{cooked}}}</div>
|
||||||
{{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"}}
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
// used to render a div with unescaped contents
|
|
||||||
|
|
||||||
Discourse.RawDivView = Ember.View.extend({
|
|
||||||
|
|
||||||
shouldRerender: Discourse.View.renderIfChanged('content'),
|
|
||||||
|
|
||||||
render: function(buffer) {
|
|
||||||
buffer.push(this.get('content'));
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
Loading…
Add table
Add a link
Reference in a new issue