Making WordPress.org

Changeset 297


Ignore:
Timestamp:
01/17/2014 04:25:09 AM (11 years ago)
Author:
nacin
Message:

Trac: Don't double-up on keywords in the dropdown when re-populating the bin. Probably caused by refactoring; hadn't noticed before.

File:
1 edited

Legend:

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

    r296 r297  
    246246                    wpTrac.workflow.template();
    247247
    248                     elements.add = $('#keyword-add');
    249 
    250248                    // Load up the initial keywords and the dropdown.
    251249                    wpTrac.workflow.populate();
     
    339337
    340338                    // Populate the dropdown.
     339                    if ( elements.add ) {
     340                        elements.add.empty();
     341                    } else {
     342                        elements.add = $('#keyword-add');
     343                    }
     344
    341345                    $.each( coreKeywordList, function( k, v ) {
    342346                        // Don't show special (permission-based) ones.
Note: See TracChangeset for help on using the changeset viewer.