Changeset 29415
- Timestamp:
- 08/06/2014 07:12:41 PM (11 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/css/media-views.css
r29393 r29415 256 256 overflow: auto; 257 257 -webkit-overflow-scrolling: touch; 258 } 259 260 .upload-php .mode-grid .hide-sidebar .media-sidebar { 261 top: 102px; 262 display: none; 258 263 } 259 264 … … 1384 1389 margin: 0; 1385 1390 -webkit-box-shadow: none; 1386 box-shadow: none; 1391 box-shadow: none; 1387 1392 } 1388 1393 -
trunk/src/wp-includes/js/media-grid.js
r29403 r29415 192 192 193 193 // Browse our library of attachments. 194 contentRegion.view = new media.view.AttachmentsBrowser({194 this.browserView = contentRegion.view = new media.view.AttachmentsBrowser({ 195 195 controller: this, 196 196 collection: state.get('library'), … … 202 202 display: state.get('displaySettings'), 203 203 dragInfo: state.get('dragInfo'), 204 sidebar: false,204 sidebar: 'errors', 205 205 206 206 suggestedWidth: state.get('suggestedWidth'), … … 211 211 scrollElement: document 212 212 }); 213 214 this.errors = wp.Uploader.errors; 215 this.errors.on( 'add remove reset', this.sidebarVisibility, this ); 216 }, 217 218 sidebarVisibility: function() { 219 this.browserView.$( '.media-sidebar' ).toggle( this.errors.length ); 213 220 } 214 221 }); -
trunk/src/wp-includes/js/media-views.js
r29379 r29415 5703 5703 if ( this.options.sidebar ) { 5704 5704 this.createSidebar(); 5705 } else { 5705 } 5706 5707 if ( ! this.options.sidebar || 'errors' === this.options.sidebar ) { 5706 5708 this.$el.addClass( 'hide-sidebar' ); 5707 5709 }
Note: See TracChangeset
for help on using the changeset viewer.