Customizer: Hide the reorder-widgets button when a widget area is empty.

props celloexpressions.
fixes #27787.
Built from https://develop.svn.wordpress.org/trunk@31255


git-svn-id: http://core.svn.wordpress.org/trunk@31236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2015-01-20 22:45:22 +00:00
parent 81c0f75332
commit b4bb289b5d
3 changed files with 5 additions and 2 deletions

View File

@ -1644,7 +1644,10 @@
}); });
if ( ! widgetControls.length ) { if ( ! widgetControls.length ) {
this.container.find( '.reorder-toggle' ).hide();
return; return;
} else {
this.container.find( '.reorder-toggle' ).show();
} }
$( widgetControls ).each( function () { $( widgetControls ).each( function () {

File diff suppressed because one or more lines are too long

View File

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