Merge pull request #483 from williamboman/fix/focus-input-on-submit
client: re-focus input on chat form submit
This commit is contained in:
commit
837f78f1ae
@ -729,6 +729,7 @@ $(function() {
|
|||||||
|
|
||||||
$("#form").on("submit", function(e) {
|
$("#form").on("submit", function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
focus();
|
||||||
var text = input.val();
|
var text = input.val();
|
||||||
|
|
||||||
if (text.length === 0) {
|
if (text.length === 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user