Fixed a problem with the costum document text display

This commit is contained in:
2026-01-19 18:31:06 +01:00
parent 49e2724ad3
commit dacfa2094c
3 changed files with 8 additions and 3 deletions
+7 -1
View File
@@ -508,7 +508,13 @@ function reloadDocuments() {
.replace(/_/g, ' ') // Leerzeichen ersetzen
.replace(/\b\w/g, c => c.toUpperCase()) // ersten Buchstaben groß
existingDocs.appendChild(option);
customDocumentTypes.appendChild(option);
const option2 = document.createElement('option');
option.value = file;
option.textContent = file
.replace('.txt', '') // Endung entfernen
.replace(/_/g, ' ') // Leerzeichen ersetzen
.replace(/\b\w/g, c => c.toUpperCase()) // ersten Buchstaben groß
customDocumentTypes.appendChild(option2);
});
});
}