Changeset 31996 for trunk/src/wp-admin/options-general.php
- Timestamp:
- 04/03/2015 04:51:18 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-general.php
r31993 r31996 61 61 $("input[name='date_format_custom'], input[name='time_format_custom']").change( function() { 62 62 var format = $(this); 63 format.siblings( '.spinner').css('display', 'inline-block'); // show(); can't be used here63 format.siblings( '.spinner' ).addClass( 'is-active' ); 64 64 $.post(ajaxurl, { 65 65 action: 'date_format_custom' == format.attr('name') ? 'date_format' : 'time_format', 66 66 date : format.val() 67 }, function(d) { format.siblings( '.spinner').hide(); format.siblings('.example').text(d); } );67 }, function(d) { format.siblings( '.spinner' ).removeClass( 'is-active' ); format.siblings('.example').text(d); } ); 68 68 }); 69 69
Note: See TracChangeset
for help on using the changeset viewer.