r51720 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51719‎ | r51720 | r51721 >
Date:23:18, 10 June 2009
Author:tparscal
Status:deferred
Tags:
Comment:
Keeps focus on textbox when tabs are clicked
Modified paths:
  • /trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js
@@ -60,6 +60,7 @@
6161 .attr( { 'href': '#', 'rel': section, 'class': current ? 'current' : null } )
6262 .data( 'sectionDiv', sectionDiv )
6363 .data( 'sectionCookie', sectionCookie )
 64+ .data( 'textbox', textbox )
6465 .click( function() {
6566 $(this).blur();
6667 var show = ( $(this).data( 'sectionDiv' ).css( 'display' ) == 'none' );
@@ -74,6 +75,7 @@
7576 $(this).data( 'sectionCookie' ),
7677 show ? $(this).data( 'sectionDiv' ).attr( 'id' ) : null
7778 );
 79+ $(this).data( 'textbox' ).focus();
7880 return false;
7981 })
8082 )

Status & tagging log