wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
network_settings_add_js › WordPress Function
Seit4.1.0
Veraltetn/v
› network_settings_add_js ( Keine Parameter )
Definiert in: |
|
Codex: |
Prints JavaScript in the header on the Network Settings screen.
Ähnliche Funktionen: get_settings, do_settings_fields, get_settings_errors, delete_users_add_js, export_add_js
Quellcode
function network_settings_add_js() { ?> <script type="text/javascript"> jQuery( function($) { var languageSelect = $( '#WPLANG' ); $( 'form' ).on( '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" />' ); } }); } );