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