Changeset 36580
- Timestamp:
- 02/18/2016 09:20:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/theme.js
r36270 r36580 159 159 } 160 160 161 // Trigger a n 'update' event162 this.trigger( ' update' );161 // Trigger a 'themes:update' event 162 this.trigger( 'themes:update' ); 163 163 }, 164 164 … … 186 186 author = data.get( 'author' ).replace( /(<([^>]+)>)/ig, '' ); 187 187 188 haystack = _.union( name, data.get( 'id' ), description, author, data.get( 'tags' ));188 haystack = _.union( [ name, data.get( 'id' ), description, author, data.get( 'tags' ) ] ); 189 189 190 190 if ( match.test( data.get( 'author' ) ) && term.length > 2 ) { … … 265 265 // Trigger a collection refresh event 266 266 // and a `query:success` event with a `count` argument. 267 self.trigger( ' update' );267 self.trigger( 'themes:update' ); 268 268 self.trigger( 'query:success', count ); 269 269 … … 309 309 } 310 310 311 this.trigger( ' update' );311 this.trigger( 'themes:update' ); 312 312 this.trigger( 'query:success', this.count ); 313 313 } … … 864 864 865 865 // When the collection is updated by user input... 866 this.listenTo( self.collection, ' update', function() {866 this.listenTo( self.collection, 'themes:update', function() { 867 867 self.parent.page = 0; 868 868 self.currentTheme(); 869 869 self.render( this ); 870 } );870 } ); 871 871 872 872 // Update theme count to full result set when available. … … 1479 1479 // Construct the filter request 1480 1480 // using the default values 1481 filter = _.union( filter, this.filtersChecked());1481 filter = _.union( [ filter, this.filtersChecked() ] ); 1482 1482 request = { tag: [ filter ] }; 1483 1483
Note: See TracChangeset
for help on using the changeset viewer.