()
| 298 | // Display the UI for link hint numbers vs. characters, depending upon the value of |
| 299 | // "filterLinkHints". |
| 300 | function maintainLinkHintsView() { |
| 301 | const errors = getValidationErrors(); |
| 302 | const isFilteredLinkhints = getOptionEl("filterLinkHints").checked; |
| 303 | showElement( |
| 304 | document.querySelector("#link-hint-characters-container"), |
| 305 | !isFilteredLinkhints || errors["linkHintCharacters"], |
| 306 | ); |
| 307 | showElement( |
| 308 | document.querySelector("#link-hint-numbers-container"), |
| 309 | isFilteredLinkhints || errors["linkHintNumbers"], |
| 310 | ); |
| 311 | showElement( |
| 312 | document.querySelector("#wait-for-enter"), |
| 313 | isFilteredLinkhints, |
| 314 | ); |
| 315 | } |
| 316 | |
| 317 | export function prepareBackupSettings() { |
| 318 | const settings = Settings.pruneOutDefaultValues(getSettingsFromForm()); |
no test coverage detected