Ticket #27521: 27521.9.diff
File 27521.9.diff, 733 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/js/theme.js
332 332 333 333 preview.render(); 334 334 $( 'div.wrap' ).append( preview.el ); 335 336 // Set focused theme to current element 337 themes.focusedTheme = this.$el; 338 339 // set focus in the preview 340 $( '.close-full-overlay' ).focus(); 335 341 } 336 342 }); 337 343 … … 528 534 $( 'body' ).removeClass( 'theme-installer-active full-overlay-active' ); 529 535 }); 530 536 537 // Return focus to the theme div 538 if ( themes.focusedTheme ) { 539 themes.focusedTheme.focus(); 540 } 541 531 542 themes.router.navigate( themes.router.baseUrl( '' ) ); 532 543 return false; 533 544 },