summaryrefslogtreecommitdiffstats
path: root/hyperkitty/static/js/hyperkitty.js
diff options
context:
space:
mode:
Diffstat (limited to 'hyperkitty/static/js/hyperkitty.js')
-rw-r--r--hyperkitty/static/js/hyperkitty.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/hyperkitty/static/js/hyperkitty.js b/hyperkitty/static/js/hyperkitty.js
index 7e297f4..7464314 100644
--- a/hyperkitty/static/js/hyperkitty.js
+++ b/hyperkitty/static/js/hyperkitty.js
@@ -142,7 +142,11 @@ function setup_favorites() {
function setup_replies() {
$("a.reply").click(function(e) {
e.preventDefault();
- $(this).next().slideToggle();
+ $(this).next().slideToggle("fast", function() {
+ if ($(this).css("display") === "block") {
+ $(this).find("textarea").focus();
+ }
+ });
});
$(".reply-form button[type='submit']").click(function(e) {
e.preventDefault();