Customize: Fix logic for determining the container element when focusing on a panel, section, or control.

Fixes #33695 for trunk.

Built from https://develop.svn.wordpress.org/trunk@33939


git-svn-id: http://core.svn.wordpress.org/trunk@33908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2015-09-07 05:59:24 +00:00
parent 274373afc6
commit 7c6534fd4c
3 changed files with 7 additions and 5 deletions

View File

@ -82,8 +82,10 @@
params = params || {};
focus = function () {
var focusContainer;
if ( construct.expanded && construct.expanded() ) {
focusContainer = construct.container.find( 'ul:first' );
if ( construct.extended( api.Panel ) && construct.expanded && construct.expanded() ) {
focusContainer = construct.container.find( 'ul.control-panel-content' );
} else if ( construct.extended( api.Section ) && construct.expanded && construct.expanded() ) {
focusContainer = construct.container.find( 'ul.accordion-section-content' );
} else {
focusContainer = construct.container;
}

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-33938';
$wp_version = '4.4-alpha-33939';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.