Changeset 20928 for trunk/wp-includes/js/customize-controls.dev.js
- Timestamp:
- 05/26/2012 05:55:40 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/customize-controls.dev.js
r20925 r20928 175 175 panels; 176 176 177 this.uploader = {}; 178 if ( ! wp.Uploader.dragdrop ) 179 this.uploader.browser = this.container.find( '.upload-fallback' ); 177 this.uploader = { 178 init: function( up ) { 179 var fallback, button; 180 181 if ( up.features.dragdrop ) 182 return; 183 184 // Maintain references while wrapping the fallback button. 185 fallback = control.container.find( '.upload-fallback' ); 186 button = fallback.children().detach(); 187 188 this.browser.detach().empty().append( button ); 189 fallback.append( this.browser ).show(); 190 } 191 }; 180 192 181 193 api.UploadControl.prototype.ready.call( this );
Note: See TracChangeset
for help on using the changeset viewer.