Make WordPress Core

Changeset 31252


Ignore:
Timestamp:
01/20/2015 08:35:13 PM (10 years ago)
Author:
ocean90
Message:

Customizer: If there's only one available sidebar, hide the move-widget button.

props celloexpressions.
fixes #30690.

File:
1 edited

Legend:

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

    r30992 r31252  
    642642                    }
    643643                } );
     644
     645                if ( 1 === $sidebarItems.length ) {
     646                    self.container.find( '.move-widget' ).hide();
     647                } else {
     648                    self.container.find( '.move-widget' ).show();
     649                }
    644650            };
    645651
Note: See TracChangeset for help on using the changeset viewer.