WordPress.org

Make WordPress Core

Changeset 31255


Ignore:
Timestamp:
01/20/2015 10:44:11 PM (6 years ago)
Author:
ocean90
Message:

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

props celloexpressions.
fixes #27787.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-widgets.js

    r31252 r31255  
    16451645
    16461646            if ( ! widgetControls.length ) {
     1647                this.container.find( '.reorder-toggle' ).hide();
    16471648                return;
     1649            } else {
     1650                this.container.find( '.reorder-toggle' ).show();
    16481651            }
    16491652
Note: See TracChangeset for help on using the changeset viewer.