3
var select = $( '#language' ),
4
submit = $( '#language-continue' );
6
if ( ! $( 'body' ).hasClass( 'language-chooser' ) ) {
10
select.focus().on( 'change', function() {
11
var option = select.children( 'option:selected' );
13
value: option.data( 'continue' ),
14
lang: option.attr( 'lang' )
18
$( 'form' ).submit( function() {
19
// Don't show a spinner for English and installed languages,
20
// as there is nothing to download.
21
if ( ! select.children( 'option:selected' ).data( 'installed' ) ) {
22
$( this ).find( '.step .spinner' ).css( 'visibility', 'visible' );