Ticket #28963: 28963.2.patch
File 28963.2.patch, 2.6 KB (added by , 10 years ago) |
---|
-
src/wp-includes/js/media-grid.js
226 226 }, 227 227 228 228 sidebarVisibility: function() { 229 if ( this.errors.length ) { 230 this.browserView.$( '.media-sidebar' ).show(); 231 } else { 232 this.browserView.$( '.media-sidebar' ).hide(); 233 } 229 this.browserView.$( '.media-sidebar' ).toggle( !! this.errors.length ); 234 230 }, 235 231 236 232 bindDeferred: function() { -
src/wp-includes/js/media-views.js
5979 5979 this.uploader = new media.view.UploaderInline({ 5980 5980 controller: this.controller, 5981 5981 status: false, 5982 message: l10n.noItemsFound,5982 message: this.controller.isModeActive( 'grid' ) ? '' : l10n.noItemsFound, 5983 5983 canClose: this.controller.isModeActive( 'grid' ) 5984 5984 }); 5985 5985 … … 6011 6011 6012 6012 this.views.add( this.attachments ); 6013 6013 6014 this.attachmentsNoResults = new media.View({6015 controller: this.controller,6016 tagName: 'p'6017 });6018 6014 6019 this.attachmentsNoResults.$el.addClass( 'hidden no-media' ); 6020 this.attachmentsNoResults.$el.html( l10n.noMedia ); 6015 if ( this.controller.isModeActive( 'grid' ) ) { 6016 this.attachmentsNoResults = new media.View({ 6017 controller: this.controller, 6018 tagName: 'p' 6019 }); 6021 6020 6022 this.views.add( this.attachmentsNoResults ); 6021 this.attachmentsNoResults.$el.addClass( 'hidden no-media' ); 6022 this.attachmentsNoResults.$el.html( l10n.noMedia ); 6023 6024 this.views.add( this.attachmentsNoResults ); 6025 } 6023 6026 }, 6024 6027 6025 6028 createSidebar: function() { -
src/wp-includes/media-template.php
185 185 186 186 <?php else : ?> 187 187 <div class="upload-ui"> 188 <h3 class="upload-instructions drop-instructions"><?php _e( 'Drop files here' ); ?></h3>188 <h3 class="upload-instructions drop-instructions"><?php _e( 'Drop files anywhere to upload' ); ?></h3> 189 189 <p class="upload-instructions drop-instructions"><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p> 190 <a href="#" class="browser button "><?php _e( 'Select Files' ); ?></a>190 <a href="#" class="browser button button-hero"><?php _e( 'Select Files' ); ?></a> 191 191 </div> 192 192 193 193 <div class="upload-inline-status"></div>