Changeset 12774
- Timestamp:
- 08/01/2023 10:15:05 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/assets/js/admin.js
r12773 r12774 12 12 13 13 // Hide 'Post submitted' admin notice if post publication was actually blocked due to missing taxonomies. 14 document.querySelector('.notice-missing-taxonomies ~ #message.notice-success')?.hidden = true; 14 const successNoticeAlongsideMissingTerms = document.querySelector('.notice-missing-taxonomies ~ #message.notice-success'); 15 if (successNoticeAlongsideMissingTerms) { 16 successNoticeAlongsideMissingTerms.hidden = true; 17 } 18 19 // Hide 'Orientations' metabox when a value is assigned. 20 // Orientation shouldn't need direct assignment or changing, so don't show it (as long as a value was set). 21 const orientation_value = document.querySelector('input[name="tax_input[photo_orientation][]"]:checked' ); 22 if ( orientation_value ) { 23 document.getElementById('photo_orientationdiv').hidden = true; 24 } 15 25 }, false);
Note: See TracChangeset
for help on using the changeset viewer.