Make WordPress Core

Changeset 26521


Ignore:
Timestamp:
12/02/2013 07:15:14 AM (13 years ago)
Author:
dd32
Message:

Themes: Bail if the search term matches the currently rendered themes, Fixes the events being clobbered. Props jblz. Fixes #26347

File:
1 edited

Legend:

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

    r26519 r26521  
    9797        // and triggers an update event
    9898        doSearch: function( value ) {
     99
     100                // Don't do anything if we've already done this search
     101                // Useful because the Search handler fires multiple times per keystroke
     102                if ( this.terms === value ) {
     103                        return;
     104                }
    99105
    100106                // Updates terms with the value passed
Note: See TracChangeset for help on using the changeset viewer.