From: Sarven Capadisli Date: Thu, 2 Jul 2009 21:29:03 +0000 (+0000) Subject: Disabled textarea focus for conversation page since most entrances to X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bb404c9be23f01002ec33cd0b42cc4c091e488e8;p=quix0rs-gnu-social.git Disabled textarea focus for conversation page since most entrances to this page is with 'in context' link (which includes a fragment identifier) --- diff --git a/js/util.js b/js/util.js index 638104c1c5..9bb7c91288 100644 --- a/js/util.js +++ b/js/util.js @@ -49,8 +49,9 @@ $(document).ready(function(){ // run once in case there's something in there counter(); - // set the focus - $("#notice_data-text").focus(); + if($('body')[0].id != 'conversation') { + $("#notice_data-text").focus(); + } } // XXX: refactor this code