From 4a99effeb025e6ed6f1a2667a533894aa1fe2f46 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 25 Apr 2018 17:06:45 +0200 Subject: focusing on mail --- public/assets/js/lib/views/details/editcomment.js | 1 + 1 file changed, 1 insertion(+) (limited to 'public/assets/js/lib/views/details') diff --git a/public/assets/js/lib/views/details/editcomment.js b/public/assets/js/lib/views/details/editcomment.js index 39d8a45..2f9a3b5 100644 --- a/public/assets/js/lib/views/details/editcomment.js +++ b/public/assets/js/lib/views/details/editcomment.js @@ -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() + setCaretToPos(this.$comment.get(0), 0, 0) $("body").removeClass("loading") }.bind(this)) }, -- cgit v1.2.3-70-g09d2