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

View File

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