Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the auto-focus script of ERD2WTabInspectPage #694

Merged
merged 2 commits into from
Nov 29, 2015

Conversation

fbarthez
Copy link
Contributor

The current implementation would select an input based on the number of tabs that are defined. If three tabs were defined, the third form element would be selected – if it happens to be of type text or textarea. This is fixed to select the first available form element of these types.

Also enables the auto-focusing when the tab switch is carried out via ajax.

… array is irrelevant. This implementation will focus on the first text or textarea input in the form, unless focus is already attributed to a form input.
@darkv darkv added the D2W label Nov 13, 2015
@schleiereule
Copy link

Works for me.

darkv added a commit that referenced this pull request Nov 29, 2015
Fix the auto-focus script of ERD2WTabInspectPage
@darkv darkv merged commit e4502e4 into wocommunity:master Nov 29, 2015
@fbarthez fbarthez deleted the pr/TabPageAutoFocus branch November 30, 2015 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants