diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-02-18 15:25:54 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-02-18 15:25:54 +0100 |
| commit | fd896111e5d045dccc3b6568229b3b9191a2b921 (patch) | |
| tree | f983f388cd656901487545a410d38de9fe2bf0a8 /public/assets/js/lib/views | |
| parent | a9912ed17a64f953ed4bccc691dc3d0f3a96a1bd (diff) | |
image css
Diffstat (limited to 'public/assets/js/lib/views')
| -rw-r--r-- | public/assets/js/lib/views/index/hootbox.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/public/assets/js/lib/views/index/hootbox.js b/public/assets/js/lib/views/index/hootbox.js index 89b5ef8..72fbfde 100644 --- a/public/assets/js/lib/views/index/hootbox.js +++ b/public/assets/js/lib/views/index/hootbox.js @@ -26,16 +26,17 @@ var HootBox = FormView.extend({ var t = this.template.replace(/{{image}}/g, profile_image(comment.username)) .replace(/{{username}}/g, comment.username) .replace(/{{comment}}/g, tidy_urls(comment.comment, true)) - return t + var $t = $(t) + return $t }, prependComment: function(comment){ - var $el = $( this.parse(comment) ) + var $el = this.parse(comment) this.$hoots.prepend($el) }, appendComment: function(comment){ - var $el = $( this.parse(comment) ) + var $el = this.parse(comment) this.$hoots.append($el) }, |
