Ticket #27521: 27521.10.diff
File 27521.10.diff, 1001 bytes (added by , 11 years ago) |
---|
-
wp-admin/js/theme.js
494 494 495 495 // If we have no more themes, bail. 496 496 if ( _.isUndefined( self.current ) ) { 497 self.options.parent.parent.trigger( 'theme:end' ); 497 498 return self.current = current; 498 499 } 499 500 … … 505 506 // Render and append. 506 507 preview.render(); 507 508 $( 'div.wrap' ).append( preview.el ); 509 $( '.next-theme' ).focus(); 508 510 }) 509 511 .listenTo( preview, 'theme:previous', function() { 510 512 … … 532 534 // Render and append. 533 535 preview.render(); 534 536 $( 'div.wrap' ).append( preview.el ); 537 $( '.previous-theme' ).focus(); 535 538 }); 536 539 } 537 540 }); … … 882 885 // Loop through the themes and setup each theme view 883 886 self.instance.each( function( theme ) { 884 887 self.theme = new themes.view.Theme({ 885 model: theme 888 model: theme, 889 parent: self 886 890 }); 887 891 888 892 // Render the views...