Changeset 27890 for trunk/src/wp-admin/js/customize-widgets.js
- Timestamp:
- 04/01/2014 11:07:59 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-widgets.js
r27819 r27890 260 260 // Check if the widget is in another sidebar 261 261 wp.customize.each( function ( other_setting ) { 262 if ( other_setting.id === control.setting.id || 0 !== _.indexOf( other_setting.id,'sidebars_widgets[' ) || other_setting.id === 'sidebars_widgets[wp_inactive_widgets]' ) {262 if ( other_setting.id === control.setting.id || 0 !== other_setting.id.indexOf( 'sidebars_widgets[' ) || other_setting.id === 'sidebars_widgets[wp_inactive_widgets]' ) { 263 263 return; 264 264 } … … 570 570 return; 571 571 } 572 if ( 0 !== _.indexOf( other_setting.id,'sidebars_widgets[' ) ) {572 if ( 0 !== other_setting.id.indexOf( 'sidebars_widgets[' ) ) { 573 573 return; 574 574 } … … 761 761 // Reposition whenever a sidebar's widgets are changed 762 762 wp.customize.each( function ( setting ) { 763 if ( 0 === _.indexOf( setting.id,'sidebars_widgets[' ) ) {763 if ( 0 === setting.id.indexOf( 'sidebars_widgets[' ) ) { 764 764 setting.bind( function () { 765 765 if ( control.container.hasClass( 'expanded' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.