Scroll to bottom on window focus

This commit is contained in:
Mattias Erming 2014-06-16 10:53:50 +02:00
parent 354edb1d47
commit ff707153b2
1 changed files with 4 additions and 1 deletions

View File

@ -186,7 +186,10 @@ $(function() {
$("#main .active").removeClass("active");
var window = $(target)
.css("z-index", z++)
.addClass("active");
.addClass("active")
.find(".chat")
.scrollToBottom()
.end();
if (!touchDevice) {
window.find("input").focus();