Use jQuery.prop('checked') instead of jQuery.attr.
props Frank Klein. fixes #26378. Built from https://develop.svn.wordpress.org/trunk@26571 git-svn-id: http://core.svn.wordpress.org/trunk@26462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dd465838e6
commit
66425e1489
|
@ -32,7 +32,7 @@ function options_general_add_js() {
|
|||
$("input[name='date_format_custom']").val( $(this).val() ).siblings('.example').text( $(this).siblings('span').text() );
|
||||
});
|
||||
$("input[name='date_format_custom']").focus(function(){
|
||||
$("#date_format_custom_radio").attr("checked", "checked");
|
||||
$( '#date_format_custom_radio' ).prop( 'checked', true );
|
||||
});
|
||||
|
||||
$("input[name='time_format']").click(function(){
|
||||
|
@ -40,7 +40,7 @@ function options_general_add_js() {
|
|||
$("input[name='time_format_custom']").val( $(this).val() ).siblings('.example').text( $(this).siblings('span').text() );
|
||||
});
|
||||
$("input[name='time_format_custom']").focus(function(){
|
||||
$("#time_format_custom_radio").attr("checked", "checked");
|
||||
$( '#time_format_custom_radio' ).prop( 'checked', true );
|
||||
});
|
||||
$("input[name='date_format_custom'], input[name='time_format_custom']").change( function() {
|
||||
var format = $(this);
|
||||
|
|
Loading…
Reference in New Issue