diff options
Diffstat (limited to 'public/assets/js/lib/views/details/editcomment.js')
| -rw-r--r-- | public/assets/js/lib/views/details/editcomment.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/assets/js/lib/views/details/editcomment.js b/public/assets/js/lib/views/details/editcomment.js index d42efb1..ff0190a 100644 --- a/public/assets/js/lib/views/details/editcomment.js +++ b/public/assets/js/lib/views/details/editcomment.js @@ -1,6 +1,6 @@ var EditCommentForm = FormView.extend({ - el: ".edit_form", + el: "#comment_form", events: { "focus textarea": 'focus', @@ -20,6 +20,7 @@ var EditCommentForm = FormView.extend({ this.action = "/api/comment/" + id $.get(this.action, function(data){ this.$comment.val(data.comment.comment).focus() + console.log(this.$comment) setCaretToPos(this.$comment.get(0), 0, 0) $("body").removeClass("loading") }.bind(this)) |
