Changeset 12790
- Timestamp:
- 08/01/2023 10:50:55 PM (19 months ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/assets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/assets/css/admin.css
r12781 r12790 61 61 } 62 62 63 #content.photo-missing-description, 63 64 .photo-missing-taxonomy { 64 border -color:orange;65 border: 1px solid orange; 65 66 background-color: antiquewhite; 66 67 } -
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/assets/js/admin.js
r12784 r12790 34 34 ]; 35 35 interfaceElementsToRemove.forEach(n => { document.querySelector(n)?.remove(); }); 36 37 // Highlight photo description/caption if empty. 38 const photoDescription = document.getElementById('content'); 39 function setDescriptionHighlight() { 40 const missingDescription = 'photo-missing-description'; 41 if ( photoDescription?.value.trim().length > 0 ) { 42 photoDescription.classList.remove(missingDescription); 43 } else { 44 photoDescription.classList.add(missingDescription); 45 } 46 } 47 setDescriptionHighlight(); 48 photoDescription.addEventListener('input', e => setDescriptionHighlight()); 36 49 37 50 // Highlight custom taxonomies lacking terms.
Note: See TracChangeset
for help on using the changeset viewer.