Changeset 55560
- Timestamp:
- 03/18/2023 03:45:39 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/inline-edit-post.js
r54936 r55560 377 377 378 378 // Handle the post status. 379 var post_date_string = $(':input[name="aa"]').val() + '-' + $(':input[name="mm"]').val() + '-' + $(':input[name="jj"]').val(); 380 post_date_string += ' ' + $(':input[name="hh"]').val() + ':' + $(':input[name="mn"]').val() + ':' + $(':input[name="ss"]').val(); 381 var post_date = new Date( post_date_string ); 379 382 status = $('._status', rowData).text(); 380 if ( 'future' !== status ) {383 if ( 'future' !== status && Date.now() > post_date ) { 381 384 $('select[name="_status"] option[value="future"]', editRow).remove(); 385 } else { 386 $('select[name="_status"] option[value="publish"]', editRow).remove(); 382 387 } 383 388
Note: See TracChangeset
for help on using the changeset viewer.