Make WordPress Core

Ticket #29152: 29152.2.patch

File 29152.2.patch, 585 bytes (added by adamsilverstein, 11 years ago)

add inline docs

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

     
    50095009                                return;
    50105010                        }
    50115011
     5012                        // Bail if the model is already selected
     5013                        if ( this.$el.hasClass( 'selected' ) ) {
     5014                                return;
     5015                        }
     5016
     5017                        // Add 'selected' class to model. Set aria-checked to true.
     5018                        // Make the checkbox tabable
    50125019                        this.$el.addClass( 'selected' ).attr( 'aria-checked', true )
    50135020                                        .find( '.check' ).attr( 'tabindex', '0' );
    50145021