Index: trunk/extensions/CodeReview/modules/ext.codereview.js |
— | — | @@ -1,18 +1,3 @@ |
2 | | -( function( $ ) { |
3 | | -// Create or extend the object |
4 | | -window.CodeReview = $.extend( window.CodeReview, { |
5 | | - |
6 | | - focusReplyArea : function() { |
7 | | - var $replyArea = $('.mw-codereview-post-comment textarea:first'); |
8 | | - if ( $replyArea.size() ) { |
9 | | - $replyArea[0].focus(); |
10 | | - } |
11 | | - } |
12 | | - |
13 | | -}); |
14 | | - |
15 | | -$( document ).ready( function() { |
16 | | - CodeReview.focusReplyArea(); |
17 | | -}); |
18 | | - |
19 | | -})( jQuery ); |
| 2 | +jQuery( document ).ready( function( $ ) { |
| 3 | + $( '.mw-codereview-post-comment textarea:first' ).focus(); |
| 4 | +} ); |
\ No newline at end of file |