Changeset 14051
- Timestamp:
- 09/12/2024 09:04:57 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/rejection.php
r13996 r14051 858 858 cbRejectPublished?.addEventListener('change', (event) => { 859 859 if (rejectSelect) { 860 // If disabled, then undo any changes towards doing the rejection. 861 if ( !event.target.checked ) { 862 const inputRejectNoteToUser = document.querySelector('#moderator_note_to_user'); 863 // Remove rejection note to user. 864 inputRejectNoteToUser.value = ''; 865 // Unset rejection reason. 866 rejectSelect.value = ''; 867 rejectSelect.dispatchEvent(new Event('change')); 868 } 869 // Disable rejection dropdown. 860 870 rejectSelect.disabled = !event.target.checked; 861 871 } … … 869 879 JS; 870 880 871 // Show a notice if the post is already published and a checkbox for enabling rejection field.881 // Show a notice if the post is already published and add a checkbox for enabling rejection field. 872 882 if ( 'publish' === get_post_status( $post ) ) { 873 883 echo '<div class="reject-warn-if-published">';
Note: See TracChangeset
for help on using the changeset viewer.