r83488 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83487‎ | r83488 | r83489 >
Date:22:43, 7 March 2011
Author:krinkle
Status:ok
Tags:
Comment:
Follow-up: r83352; simplifying. No need for entire frame if there's only one thing
Modified paths:
  • /trunk/extensions/CodeReview/modules/ext.codereview.js (modified) (history)

Diff [purge]

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

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r83352Rewriting and updating most of CR's javascript to 1.17 and fixing some bugs...krinkle01:38, 6 March 2011

Status & tagging log