MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / setSelectedServiceIds

Function setSelectedServiceIds

static/js/app.js:897–905  ·  view source on GitHub ↗
(container, selectedIds)

Source from the content-addressed store, hash-verified

895}
896
897function setSelectedServiceIds(container, selectedIds) {
898 if (!container) return;
899 const selectedSet = new Set((selectedIds || []).map(item => parseInt(item)));
900 container.querySelectorAll('.msd-item input').forEach(cb => {
901 cb.checked = selectedSet.size === 0 ? true : selectedSet.has(parseInt(cb.value));
902 });
903 const dropdownId = `${container.id}-dd`;
904 updateMsdLabel(dropdownId);
905}
906
907function formatScheduleDateTime(value) {
908 if (!value) return '-';

Callers 1

Calls 1

updateMsdLabelFunction · 0.85

Tested by

no test coverage detected