(id)
| 2118 | } |
| 2119 | |
| 2120 | function selectedSettingTagValues(id) { |
| 2121 | return Array.from($(id)?.querySelectorAll("span") || []) |
| 2122 | .map((item) => item.textContent.trim()) |
| 2123 | .filter((value) => value && ![i18n.zh.common.notConfigured, i18n.en.common.notConfigured, i18n.zh.settings.placeholderMissing, i18n.en.settings.placeholderMissing].includes(value)); |
| 2124 | } |
| 2125 | |
| 2126 | function syncChoiceListFromSettings(id, values, enabled = true, options = {}) { |
| 2127 | const target = $(id); |
no test coverage detected