Changeset 50001 for trunk/src/wp-admin/includes/options.php
- Timestamp:
- 01/22/2021 12:30:39 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/options.php
r47808 r50001 19 19 var parent = $( '#show_avatars' ), 20 20 children = $( '.avatar-settings' ); 21 parent. change(function(){21 parent.on( 'change', function(){ 22 22 children.toggleClass( 'hide-if-js', ! this.checked ); 23 23 }); … … 50 50 }); 51 51 52 $( 'input[name="date_format"]' ). click(function() {52 $( 'input[name="date_format"]' ).on( 'click', function() { 53 53 if ( 'date_format_custom_radio' !== $(this).attr( 'id' ) ) 54 54 $( 'input[name="date_format_custom"]' ).val( $( this ).val() ).closest( 'fieldset' ).find( '.example' ).text( $( this ).parent( 'label' ).children( '.format-i18n' ).text() ); … … 59 59 }); 60 60 61 $( 'input[name="time_format"]' ). click(function() {61 $( 'input[name="time_format"]' ).on( 'click', function() { 62 62 if ( 'time_format_custom_radio' !== $(this).attr( 'id' ) ) 63 63 $( 'input[name="time_format_custom"]' ).val( $( this ).val() ).closest( 'fieldset' ).find( '.example' ).text( $( this ).parent( 'label' ).children( '.format-i18n' ).text() ); … … 90 90 91 91 var languageSelect = $( '#WPLANG' ); 92 $( 'form' ). submit(function() {92 $( 'form' ).on( 'submit', function() { 93 93 // Don't show a spinner for English and installed languages, 94 94 // as there is nothing to download. … … 118 118 }; 119 119 check_disabled(); 120 section.find( 'input:radio' ). change(check_disabled );120 section.find( 'input:radio' ).on( 'change', check_disabled ); 121 121 }); 122 122 </script>
Note: See TracChangeset
for help on using the changeset viewer.