configTemplates

fixed issue of reoccuring textBlocks entry
This commit is contained in:
maru21 2023-09-21 14:21:36 +02:00
parent 8e25ed1e75
commit eac9c04c4f
16 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,7 @@
<link rel="stylesheet" href="css/font-awesome/css/all.min.css" /> <link rel="stylesheet" href="css/font-awesome/css/all.min.css" />
<link rel="stylesheet" href="css/styles.css" /> <link rel="stylesheet" href="css/styles.css" />
<script type="module" src="js/9.6/main.js"></script> <script type="module" src="js/9.7/main.js"></script>
<body> <body>

View File

@ -69,7 +69,9 @@ function createTemplate(template = false) {
function loadTemplateSidebar(templates) { function loadTemplateSidebar(templates) {
let sidebarList = document.createElement("ul"); let sidebarList = document.createElement("ul");
sidebarList.classList.add("w3-ul"); sidebarList.classList.add("w3-ul");
templates.push('_textBlocks'); if (!templates.includes('_textBlocks')) {
templates.push('_textBlocks');
}
for (let template of templates) { for (let template of templates) {