From d273a98f417c36033be40da087b2c7b54c8eac5e Mon Sep 17 00:00:00 2001 From: sostler Date: Wed, 5 May 2010 00:47:17 -0400 Subject: Remove msgInput focus to prevent FF alert loop (REALLY) --- static/js/pichat.js | 3 +-- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3-70-g09d2