Make WordPress Core

Ticket #28822: 28822.3.diff

File 28822.3.diff, 835 bytes (added by adamsilverstein, 12 years ago)

don't make checkboxes tabable in media grid bulk select mode

  • src/wp-includes/js/media-views.js

     
    49564956                                return;
    49574957                        }
    49584958
    4959                         // Add 'selected' class to model, set aria-checked to true and make the checkbox tabable.
    4960                         this.$el.addClass( 'selected' ).attr( 'aria-checked', true )
    4961                                 .find( '.check' ).attr( 'tabindex', '0' );
     4959                        // Add 'selected' class to model, set aria-checked to true.
     4960                        this.$el.addClass( 'selected' ).attr( 'aria-checked', true );
     4961                        //  Make the checkbox tabable, except in media grid (bulk select mode).
     4962                        if ( 'library' !== this.controller._state ) {
     4963                                this.$el.find( '.check' ).attr( 'tabindex', '0' );
     4964                        }
    49624965                },
    49634966                /**
    49644967                 * @param {Backbone.Model} model