summaryrefslogtreecommitdiffstats
path: root/apps/comments
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-21 18:10:41 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-07-24 12:34:02 +0200
commitb7317a35e72b36ad06f05dc99b5f9947ac76b292 (patch)
treefb6927e3a6b5e994f6ce2747ff7032f96429c007 /apps/comments
parentdfe6c1b7e2a179a0c7aee0f43a722bf1e3e3cf3d (diff)
downloadnextcloud-server-b7317a35e72b36ad06f05dc99b5f9947ac76b292.tar.gz
nextcloud-server-b7317a35e72b36ad06f05dc99b5f9947ac76b292.zip
Focus the comment input on tab select/loading
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/comments')
-rw-r--r--apps/comments/js/commentstabview.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js
index fc074b709ad..c3903674e84 100644
--- a/apps/comments/js/commentstabview.js
+++ b/apps/comments/js/commentstabview.js
@@ -172,6 +172,7 @@
this.$el.find('.message').on('keydown input change', this._onTypeComment);
autosize(this.$el.find('.newCommentRow .message'))
+ this.$el.find('.newCommentForm .message').focus();
},
_initAutoComplete: function($target) {
@@ -303,6 +304,8 @@
}
);
}
+ this.$el.find('.newCommentForm .message').focus();
+
},
/**