Ticket #36848: 36848.patch
| File 36848.patch, 1.2 KB (added by , 10 years ago) |
|---|
-
src/wp-admin/js/theme.js
979 979 this.liveThemeCount = this.collection.count ? this.collection.count : this.collection.length; 980 980 this.count.text( this.liveThemeCount ); 981 981 982 this.announceSearchResults( this.liveThemeCount ); 982 /* 983 * In the Theme Installer the Themes count is already announced 984 * because `announceSearchResults` is called on `query:success`. 985 */ 986 if ( ! themes.isInstall ) { 987 this.announceSearchResults( this.liveThemeCount ); 988 } 983 989 }, 984 990 985 991 // Iterates through each instance of the collection … … 1319 1325 'keyup': 'search' 1320 1326 }, 1321 1327 1328 searchTerms: '', 1329 1322 1330 // Handles Ajax request for searching through themes in public repo 1323 1331 search: function( event ) { 1324 1332 … … 1340 1348 doSearch: _.debounce( function( value ) { 1341 1349 var request = {}; 1342 1350 1351 // Don't do anything if the search terms haven't changed. 1352 if ( this.searchTerms === value ) { 1353 return; 1354 } 1355 1356 // Updates searchTerms with the current search terms. 1357 this.searchTerms = value; 1358 1343 1359 request.search = value; 1344 1360 1345 1361 // Intercept an [author] search.