Browse Source
Focus the comment input on tab select/loading
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pull/10327/head
John Molakvoæ (skjnldsv)
7 years ago
committed by
Roeland Jago Douma
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with
3 additions and
0 deletions
-
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(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
|