Auto-check platform image toggles when image is uploaded
include_image was always 0 because users had to manually tick the per-platform image checkbox after uploading — not obvious. Now uploading an image auto-checks all targets; users can still uncheck individually. Also removes debug logging from dispatch-social. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b792535dd0
commit
24c9deef94
2 changed files with 2 additions and 4 deletions
|
|
@ -3933,6 +3933,7 @@ window.addEventListener('DOMContentLoaded', () => {
|
|||
page.querySelectorAll('.social-img-cb, .social-img-cb + label').forEach(el => {
|
||||
el.classList.toggle('d-none', !show);
|
||||
});
|
||||
if (show) page.querySelectorAll('.social-img-cb').forEach(cb => { cb.checked = true; });
|
||||
}
|
||||
|
||||
function collectTargets() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue