Changeset 42040
- Timestamp:
- 10/30/2017 03:56:26 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-controls.js
r42038 r42040 1681 1681 filtersHeight: 0, 1682 1682 headerContainer: null, 1683 updateCountDebounced: null, 1683 1684 1684 1685 /** … … 1697 1698 section.$body = $( document.body ); 1698 1699 api.Section.prototype.initialize.call( section, id, options ); 1700 section.updateCountDebounced = _.debounce( section.updateCount, 500 ); 1699 1701 }, 1700 1702 … … 1870 1872 section.expand(); 1871 1873 } 1872 section.checkTerm( section );1873 1874 }); 1874 1875 … … 2241 2242 2242 2243 // Update theme count. 2243 section.updateCount ( count );2244 section.updateCountDebounced( count ); 2244 2245 }, 2245 2246 … … 2256 2257 if ( 'remote' === section.params.filter_type ) { 2257 2258 newTerm = section.contentContainer.find( '.wp-filter-search' ).val(); 2258 if ( section.term !== newTerm ) {2259 if ( section.term !== newTerm.trim() ) { 2259 2260 section.initializeNewQuery( newTerm, section.tags ); 2260 2261 }
Note: See TracChangeset
for help on using the changeset viewer.