Focus join-chat button on room focus

This commit is contained in:
Guangcong Luo 2014-06-08 21:57:26 -05:00
parent d6483da595
commit 4c0acbfacf

View File

@ -46,7 +46,11 @@
},
focus: function() {
if (this.$chatbox) this.$chatbox.focus();
if (this.$chatbox) {
this.$chatbox.focus();
} else {
this.$('button[name=login]').focus();
}
},
login: function() {