Changeset 1152
- Timestamp:
- 01/16/2015 02:25:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/js/theme.js
r1119 r1152 330 330 _.extend( wp.themes.InstallerRouter.prototype, { 331 331 routes: { 332 '/:slug/': 'preview', 333 '/tag/:tag/': 'onFilter', 334 '/?upload': 'upload', 335 '/search.php?q=:query': 'search', 336 '/browse/:sort/': 'sort', 337 '/': 'sort', 332 'browse/:sort/': 'sort', 333 'tag/:tag/': 'tag', 334 'search/:query/': 'search', 335 'author/:author/': 'author', 336 ':slug/': 'preview', 338 337 '': 'sort' 339 338 }, … … 345 344 themePath: '', 346 345 browsePath: 'browse/', 347 searchPath: 'search .php?q='346 searchPath: 'search/' 348 347 }); 349 348 350 349 _.extend( wp.themes.RunInstaller, { 351 350 extraRoutes: function() { 352 var self = this; 351 var self = this, 352 request = {}; 353 353 354 354 wp.themes.router.on( 'route:tag', function( tag ) { 355 $( '#filter-id-' + tag). checked(true );355 $( '#filter-id-' + tag).prop( 'checked', true ); 356 356 self.view.applyFilters(); 357 357 }); 358 359 wp.themes.router.on( 'route:author', function( author ) { 360 request.author = author; 361 self.view.collection.query( request ); 362 }); 358 363 } 359 364 });
Note: See TracChangeset
for help on using the changeset viewer.