Changeset 26513
- Timestamp:
- 12/02/2013 12:47:49 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/theme.js
r26498 r26513 587 587 event.target.value = ''; 588 588 } 589 589 590 this.collection.doSearch( event.target.value ); 591 592 // Update the URL hash 593 if ( event.target.value ) 594 themes.router.navigate( 'search/' + event.target.value ); 595 else 596 themes.router.navigate( '' ); 590 597 } 591 598 }); … … 596 603 597 604 routes: { 598 'search/ :query': 'search',599 'theme/ :slug': 'theme'605 'search/*query': 'search', 606 'theme/*slug': 'theme' 600 607 }, 601 608
Note: See TracChangeset
for help on using the changeset viewer.