Changeset 22442
- Timestamp:
- 11/07/2012 09:31:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/post.js
r22268 r22442 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(), … … 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")) {
Note: See TracChangeset
for help on using the changeset viewer.