Ticket #17180: 17180.6.diff
File 17180.6.diff, 1.1 KB (added by , 12 years ago) |
---|
-
wp-admin/js/post.js
382 382 } 383 383 384 384 function updateText() { 385 386 if ( ! $('#timestampdiv').length ) 387 return true; 388 385 389 var attemptedDate, originalDate, currentDate, publishOn, postStatus = $('#post_status'), 386 390 optPublish = $('option[value="publish"]', postStatus), aa = $('#aa').val(), 387 391 mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val(); … … 528 532 return false; 529 533 }); 530 534 535 $('#post').submit(function(e){ 536 if ( ! updateText() ) { 537 e.preventDefault(); 538 $('#timestampdiv').show(); 539 $('#publishing-action .ajax-loading').css('visibility', 'hidden'); 540 $('#publish').prop('disabled', false).removeClass('button-primary-disabled'); 541 return false; 542 } 543 }); 544 531 545 $('#post-status-select').siblings('a.edit-post-status').click(function() { 532 546 if ($('#post-status-select').is(":hidden")) { 533 547 $('#post-status-select').slideDown('fast');