mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Accessibility: Remove title attributes from the General Settings screen.
Date and time formats are now displayed in plain text and available for all users. Also, lines up them with the "custom" date and time format fields to help reinforce what these fields do. Props afercia, perezlabs. Fixes #35064. git-svn-id: https://develop.svn.wordpress.org/trunk@36263 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -51,7 +51,7 @@ function options_general_add_js() {
|
||||
|
||||
$("input[name='date_format']").click(function(){
|
||||
if ( "date_format_custom_radio" != $(this).attr("id") )
|
||||
$( "input[name='date_format_custom']" ).val( $( this ).val() ).siblings( '.example' ).text( $( this ).parent( 'label' ).text() );
|
||||
$( "input[name='date_format_custom']" ).val( $( this ).val() ).siblings( '.example' ).text( $( this ).parent( 'label' ).children( '.format-i18n' ).text() );
|
||||
});
|
||||
$("input[name='date_format_custom']").focus(function(){
|
||||
$( '#date_format_custom_radio' ).prop( 'checked', true );
|
||||
@@ -59,7 +59,7 @@ function options_general_add_js() {
|
||||
|
||||
$("input[name='time_format']").click(function(){
|
||||
if ( "time_format_custom_radio" != $(this).attr("id") )
|
||||
$( "input[name='time_format_custom']" ).val( $( this ).val() ).siblings( '.example' ).text( $( this ).parent( 'label' ).text() );
|
||||
$( "input[name='time_format_custom']" ).val( $( this ).val() ).siblings( '.example' ).text( $( this ).parent( 'label' ).children( '.format-i18n' ).text() );
|
||||
});
|
||||
$("input[name='time_format_custom']").focus(function(){
|
||||
$( '#time_format_custom_radio' ).prop( 'checked', true );
|
||||
|
||||
Reference in New Issue
Block a user