From bb404c9be23f01002ec33cd0b42cc4c091e488e8 Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Thu, 2 Jul 2009 21:29:03 +0000 Subject: Disabled textarea focus for conversation page since most entrances to this page is with 'in context' link (which includes a fragment identifier) --- js/util.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'js') diff --git a/js/util.js b/js/util.js index 638104c1c..9bb7c9128 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 -- cgit v1.2.3-54-g00ecf