Ticket #17180: 17180.8.diff
File 17180.8.diff, 1.0 KB (added by , 12 years ago) |
---|
-
wp-admin/js/post.js
387 387 } 388 388 389 389 function updateText() { 390 391 if ( ! $('#timestampdiv').length ) 392 return true; 393 390 394 var attemptedDate, originalDate, currentDate, publishOn, postStatus = $('#post_status'), 391 395 optPublish = $('option[value="publish"]', postStatus), aa = $('#aa').val(), 392 396 mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val(); … … 534 538 return false; 535 539 }); 536 540 541 $('#post').on( 'submit', function(e){ 542 if ( ! updateText() ) { 543 e.preventDefault(); 544 $('#timestampdiv').show(); 545 $('#publishing-action .spinner').hide(); 546 $('#publish').prop('disabled', false).removeClass('button-primary-disabled'); 547 return false; 548 } 549 }); 550 537 551 $('#post-status-select').siblings('a.edit-post-status').click(function() { 538 552 if ($('#post-status-select').is(":hidden")) { 539 553 $('#post-status-select').slideDown('fast');