diff options
| author | sostler <sbostler@gmail.com> | 2010-05-05 00:29:00 -0400 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-05-05 00:29:00 -0400 |
| commit | 8c588f113715bca25e1aaf5c049a6b5bbe2afaab (patch) | |
| tree | 6443dbbfdca9af624b1724b87c88666c8d314e9e | |
| parent | 340337d0f2445cc21c2b4a05e96773f0caf0b2d0 (diff) | |
Release msgInput focus before alert to prevent firefox loop
| -rw-r--r-- | static/js/pichat.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 658578a..668229d 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -249,7 +249,9 @@ function submitMessage() { var invalidDomain = invalidImageDomain(content); if (invalidDomain) { + $('#msgInput').blur(); alert("Sorry, cannot accept images from " + invalidDomain + ". Maybe host the image elsewhere?") + $('#msgInput').focus(); return; } |
