Sha256: a70b281056d86a54c65bb4d17a4ebca74212f0bc7370d5540e02aaf3edcf8913
Contents?: true
Size: 625 Bytes
Versions: 6
Compression:
Stored size: 625 Bytes
Contents
jQuery( function($) { var select = $( '#language' ), submit = $( '#language-continue' ); if ( ! $( 'body' ).hasClass( 'language-chooser' ) ) { return; } select.focus().on( 'change', function() { var option = select.children( 'option:selected' ); submit.attr({ value: option.data( 'continue' ), lang: option.attr( 'lang' ) }); }); $( 'form' ).submit( function() { // Don't show a spinner for English and installed languages, // as there is nothing to download. if ( ! select.children( 'option:selected' ).data( 'installed' ) ) { $( this ).find( '.step .spinner' ).css( 'visibility', 'visible' ); } }); });
Version data entries
6 entries across 6 versions & 2 rubygems