summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/details/editcomment.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-14 19:08:55 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-14 19:08:55 +0200
commit01df2f4c4541e78cb3a0ea36703fa73f03f20843 (patch)
treed94cf544b1d5fb07b7a91c6bbcfd24e1b508cde9 /public/assets/js/lib/views/details/editcomment.js
parent985c7f54fa1dc854cfed09f404c79dd83bdf2636 (diff)
formmmmm
Diffstat (limited to 'public/assets/js/lib/views/details/editcomment.js')
-rw-r--r--public/assets/js/lib/views/details/editcomment.js3
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))