diff options
| author | sostler <sbostler@gmail.com> | 2010-05-05 00:47:17 -0400 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-05-05 00:47:17 -0400 |
| commit | d273a98f417c36033be40da087b2c7b54c8eac5e (patch) | |
| tree | 3303eab8c17fde14c25f5887e7c2ef6d8339afb6 | |
| parent | c3e1d4cb869693816ad0c6ce1ac41f4bc139094d (diff) | |
Remove msgInput focus to prevent FF alert loop (REALLY)
| -rw-r--r-- | static/js/pichat.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 661f8be..6aa6d49 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -249,9 +249,8 @@ function submitMessage() { var invalidDomain = invalidImageDomain(content); if (invalidDomain) { - $('input').blur(); + $('#msgInput').blur(); // Remove focus to prevent FF alert loop alert("Sorry, cannot accept images from " + invalidDomain + ". Maybe host the image elsewhere?"); - $('#msgInput').focus(); return; } |
