A WordPress-centric search engine for devs and theme authors



network_settings_add_js ›

Since4.1.0
Deprecatedn/a
network_settings_add_js ( No parameters )
Defined at:
Codex:

Print JavaScript in the header on the Network Settings screen.



Source

function network_settings_add_js() {
?>
<script type="text/javascript">
jQuery(document).ready( function($) {
	var languageSelect = $( '#WPLANG' );
	$( 'form' ).submit( function() {
		// Don't show a spinner for English and installed languages,
		// as there is nothing to download.
		if ( ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) {
			$( '#submit', this ).after( '<span class="spinner language-install-spinner is-active" />' );
		}
	});
});