Merge pull request #483 from williamboman/fix/focus-input-on-submit

client: re-focus input on chat form submit
This commit is contained in:
Pavel Djundik 2016-10-28 19:14:26 +03:00 committed by GitHub
commit 837f78f1ae

View file

@ -729,6 +729,7 @@ $(function() {
$("#form").on("submit", function(e) {
e.preventDefault();
focus();
var text = input.val();
if (text.length === 0) {