Changeset 22013
- Timestamp:
- 09/26/2012 03:13:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/media-models.js
r22012 r22013 374 374 // to our server-side searching. 375 375 search: function( attachment ) { 376 if ( ! this. searching)376 if ( ! this.props.get('search') ) 377 377 return true; 378 378 379 379 return _.any(['title','filename','description','caption','name'], function( key ) { 380 380 var value = attachment.get( key ); 381 return value && -1 !== value.search( this. searching);381 return value && -1 !== value.search( this.props.get('search') ); 382 382 }, this ); 383 383 }
Note: See TracChangeset
for help on using the changeset viewer.