Request the focus for the correct element.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Oct 2010 09:27:27 +0000 (11:27 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Oct 2010 09:27:27 +0000 (11:27 +0200)
src/main/resources/templates/index.html

index c3fe064..cb435ca 100644 (file)
@@ -23,7 +23,7 @@
                                                                replyElement.removeClass("light");
                                                        });
                                                })(replyElement);
                                                                replyElement.removeClass("light");
                                                        });
                                                })(replyElement);
-                                               replyElement.find("input.create-reply").focus();
+                                               replyElement.find("input.reply-input").focus();
                                        });
                                })(postId);
                                $(this).find(".create-reply").addClass("hidden");
                                        });
                                })(postId);
                                $(this).find(".create-reply").addClass("hidden");