Making WordPress.org

Changeset 9048


Ignore:
Timestamp:
07/16/2019 02:57:42 AM (5 years ago)
Author:
dd32
Message:

Trac: Ensure all focus keywords get a properly formatted delete button.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js

    r8973 r9048  
    10461046                    if ( 1 !== keywords.length || keywords[0] !== '' ) {
    10471047                        $.each( keywords, function( k, v ) {
    1048                             var html = $( '<span />' ).text( v ).attr( 'data-keyword', v ).prepend( '<button type="button" aria-label="Remove ' + v +' keyword" class="keyword-button-remove dashicons dashicons-dismiss" />' );
     1048                            var html = $( '<span />' ).text( v ).attr( 'data-keyword', v ).prepend( $( '<button type="button" aria-label="Remove keyword" class="keyword-button-remove dashicons dashicons-dismiss" />' ).attr( 'aria-label', 'Remove ' + v + ' keyword' ) );
    10491049                            if ( v in coreKeywordList ) {
    10501050                                html.attr('title', coreKeywordList[v]);
     
    11211121
    11221122                    // Add it to the bin, and refresh the hidden input.
    1123                     html = $( '<span />' ).text( keyword ).attr( 'data-keyword', keyword ).prepend( '<button type="button" aria-label="Remove ' + keyword +' keyword" class="keyword-button-remove dashicons dashicons-dismiss" />' );
     1123                    html = $( '<span />' ).text( keyword ).attr( 'data-keyword', keyword ).prepend( $( '<button type="button" aria-label="Remove keyword" class="keyword-button-remove dashicons dashicons-dismiss" />' ).attr( 'aria-label', 'Remove ' + keyword +' keyword' ) );
    11241124                    if ( title ) {
    11251125                        html.attr('title', title);
Note: See TracChangeset for help on using the changeset viewer.