Changeset 30508
- Timestamp:
- 11/21/2014 05:30:00 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/theme.js
r29924 r30508 764 764 this.$el.html( this.html( data ) ); 765 765 766 themes.router.navigate( themes.router.baseUrl( '?theme='+ this.model.get( 'id' ) ), { replace: true } );766 themes.router.navigate( themes.router.baseUrl( themes.router.themePath + this.model.get( 'id' ) ), { replace: true } ); 767 767 768 768 this.$el.fadeIn( 200, function() { … … 997 997 998 998 // Trigger a route update for the current model 999 themes.router.navigate( themes.router.baseUrl( '?theme='+ this.model.id ) );999 themes.router.navigate( themes.router.baseUrl( themes.router.themePath + this.model.id ) ); 1000 1000 1001 1001 // Sets this.view to 'detail' … … 1133 1133 // Update the URL hash 1134 1134 if ( event.target.value ) { 1135 themes.router.navigate( themes.router.baseUrl( '?search='+ event.target.value ), options );1135 themes.router.navigate( themes.router.baseUrl( themes.router.searchPath + event.target.value ), options ); 1136 1136 } else { 1137 1137 themes.router.navigate( themes.router.baseUrl( '' ) ); … … 1143 1143 1144 1144 if ( event.target.value ) { 1145 url = themes.router.baseUrl( '?search='+ event.target.value );1145 url = themes.router.baseUrl( themes.router.searchPath + event.target.value ); 1146 1146 } 1147 1147 … … 1167 1167 return 'themes.php' + url; 1168 1168 }, 1169 1170 themePath: '?theme=', 1171 searchPath: '?search=', 1169 1172 1170 1173 search: function( query ) { … … 1297 1300 1298 1301 // Set route 1299 themes.router.navigate( themes.router.baseUrl( '?search='+ value ), { replace: true } );1302 themes.router.navigate( themes.router.baseUrl( themes.router.searchPath + value ), { replace: true } ); 1300 1303 }, 300 ) 1301 1304 }); … … 1396 1399 1397 1400 // Trigger a router.naviagte update 1398 themes.router.navigate( themes.router.baseUrl( '?browse='+ sort ) );1401 themes.router.navigate( themes.router.baseUrl( themes.router.browsePath + sort ) ); 1399 1402 }, 1400 1403 … … 1568 1571 return 'theme-install.php' + url; 1569 1572 }, 1573 1574 themePath: '?theme=', 1575 browsePath: '?browse=', 1576 searchPath: '?search=', 1570 1577 1571 1578 search: function( query ) {
Note: See TracChangeset
for help on using the changeset viewer.