Changeset 37967
- Timestamp:
- 07/05/2016 02:37:06 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/theme.js
r37742 r37967 1104 1104 this.count.text( this.liveThemeCount ); 1105 1105 1106 this.announceSearchResults( this.liveThemeCount ); 1106 /* 1107 * In the theme installer the themes count is already announced 1108 * because `announceSearchResults` is called on `query:success`. 1109 */ 1110 if ( ! themes.isInstall ) { 1111 this.announceSearchResults( this.liveThemeCount ); 1112 } 1107 1113 }, 1108 1114 … … 1460 1466 }, 1461 1467 1468 terms: '', 1469 1462 1470 // Handles Ajax request for searching through themes in public repo 1463 1471 search: function( event ) { … … 1480 1488 doSearch: _.debounce( function( value ) { 1481 1489 var request = {}; 1490 1491 // Don't do anything if the search terms haven't changed. 1492 if ( this.terms === value ) { 1493 return; 1494 } 1495 1496 // Updates terms with the value passed. 1497 this.terms = value; 1482 1498 1483 1499 request.search = value;
Note: See TracChangeset
for help on using the changeset viewer.