Ticket #37188: 37188.3.diff
File 37188.3.diff, 4.7 KB (added by , 8 years ago) |
---|
-
src/wp-admin/css/media.css
526 526 left: auto; 527 527 bottom: auto; 528 528 padding-top: 0; 529 margin-top: 0;529 margin-top: 20px; 530 530 border: 4px dashed #b4b9be; 531 531 } 532 532 -
src/wp-admin/upload.php
77 77 78 78 <?php 79 79 if ( current_user_can( 'upload_files' ) ) { ?> 80 <a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action "><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php80 <a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action aria-button-if-js"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php 81 81 } 82 82 ?> 83 83 -
src/wp-includes/js/media/views/attachments/browser.js
40 40 41 41 this.controller.on( 'toggle:upload:attachment', this.toggleUploader, this ); 42 42 this.controller.on( 'edit:selection', this.editSelection ); 43 this.createUploader(); 43 44 this.createToolbar(); 44 this.createUploader();45 45 this.createAttachments(); 46 46 if ( this.options.sidebar ) { 47 47 this.createSidebar(); -
src/wp-includes/js/media/views/frame/manage.js
38 38 this.$body = $( document.body ); 39 39 this.$window = $( window ); 40 40 this.$adminBar = $( '#wpadminbar' ); 41 // Store che Add New button for later reuse in wp.media.view.UploaderInline. 42 this.$uploaderToggler = $( '.page-title-action' ); 43 41 44 this.$window.on( 'scroll resize', _.debounce( _.bind( this.fixPosition, this ), 15 ) ); 42 $( document ).on( 'click', '.page-title-action', _.bind( this.addNewClickHandler, this ) );45 this.$uploaderToggler.on( 'click', _.bind( this.addNewClickHandler, this ) ); 43 46 44 47 // Ensure core and media grid view UI is enabled. 45 48 this.$el.addClass('wp-core-ui'); -
src/wp-includes/js/media/views/uploader/inline.js
119 119 }, 120 120 show: function() { 121 121 this.$el.removeClass( 'hidden' ); 122 this.controller.$uploaderToggler.attr( 'aria-expanded', 'true' ); 122 123 }, 123 124 hide: function() { 125 // This runs also when creating the uploader, see wp.media.view.AttachmentsBrowser.createUploader(). 124 126 this.$el.addClass( 'hidden' ); 127 this.controller.$uploaderToggler.attr( 'aria-expanded', 'false' ); 125 128 } 126 129 127 130 }); -
src/wp-includes/js/media-grid.js
623 623 this.$body = $( document.body ); 624 624 this.$window = $( window ); 625 625 this.$adminBar = $( '#wpadminbar' ); 626 // Store che Add New button for later reuse in wp.media.view.UploaderInline. 627 this.$uploaderToggler = $( '.page-title-action' ); 628 626 629 this.$window.on( 'scroll resize', _.debounce( _.bind( this.fixPosition, this ), 15 ) ); 627 $( document ).on( 'click', '.page-title-action', _.bind( this.addNewClickHandler, this ) );630 this.$uploaderToggler.on( 'click', _.bind( this.addNewClickHandler, this ) ); 628 631 629 632 // Ensure core and media grid view UI is enabled. 630 633 this.$el.addClass('wp-core-ui'); -
src/wp-includes/js/media-views.js
3771 3771 3772 3772 this.controller.on( 'toggle:upload:attachment', this.toggleUploader, this ); 3773 3773 this.controller.on( 'edit:selection', this.editSelection ); 3774 this.createUploader(); 3774 3775 this.createToolbar(); 3775 this.createUploader();3776 3776 this.createAttachments(); 3777 3777 if ( this.options.sidebar ) { 3778 3778 this.createSidebar(); … … 8194 8194 }, 8195 8195 show: function() { 8196 8196 this.$el.removeClass( 'hidden' ); 8197 this.controller.$uploaderToggler.attr( 'aria-expanded', 'true' ); 8197 8198 }, 8198 8199 hide: function() { 8200 // This runs also when creating the uploader, see wp.media.view.AttachmentsBrowser.createUploader(). 8199 8201 this.$el.addClass( 'hidden' ); 8202 this.controller.$uploaderToggler.attr( 'aria-expanded', 'false' ); 8200 8203 } 8201 8204 8202 8205 });