mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -729,6 +729,7 @@ $(function() {
|
|||
|
||||
$("#form").on("submit", function(e) {
|
||||
e.preventDefault();
|
||||
focus();
|
||||
var text = input.val();
|
||||
|
||||
if (text.length === 0) {
|
||||
|
|
Loading…
Reference in a new issue