Make WordPress Core

Changeset 31636


Ignore:
Timestamp:
03/06/2015 01:50:56 AM (10 years ago)
Author:
azaozz
Message:

PressThis: fix toggling of aria-expanded attribute.
Props afercia, see #31373.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/press-this.js

    r31613 r31636  
    815815
    816816                $this.toggleClass( 'is-toggled' );
    817                 $this.attr( 'aria-expanded', ! $this.attr( 'aria-expanded' ) );
     817                $this.attr( 'aria-expanded', 'false' === $this.attr( 'aria-expanded' ) ? 'true' : 'false' );
    818818                $( '.setting-modal .add-category, .categories-search-wrapper' ).toggleClass( 'is-hidden' );
    819819            } );
Note: See TracChangeset for help on using the changeset viewer.