[TYPO3-core] RFC #16298: Feature: Set focus to password field when "loginRefreshLayer" shows up

Andreas Kiessling kiessling at pluspol.info
Sun Nov 7 21:29:55 CET 2010


Hi,

This is an SVN patch request.

Type: Feature / Backend User Interface

Bugtracker reference: http://bugs.typo3.org/view.php?id=16298

Branches: trunk

When the layer to refresh your login appears, the password field should 
automatically be focused since there is no other action to take.

Solution:
- Set callback methods for the Ext.Msg.alert messages when a wrong or no 
password is provided
- Set the focus in the 'show' event after the progressbar disappears.
Mind the delay for the focus function! Somehow ExtJS sets the focus to 
an element that it generates:
<a tabindex="-1" class="x-dlg-focus" href="#" id="ext-gen91">&nbsp;</a>
You can check this e.g. in your Firebug console with 
"document.activeElement"
Without the delay, the focus does not work and i did not find a way to 
prevent Ext JS of setting the focus on its own.


How to test:
If you don't want to wait an hour, set your sessionTimeout to like 5 to 
get the layer with the progressbar immediately
$TYPO3_CONF_VARS['BE']['sessionTimeout'] = 5;


Regards,
Andreas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16298_v1.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101107/0020fcdc/attachment.asc>


More information about the TYPO3-team-core mailing list