fix: validate.py epilog --type-json, index.html wasViewModalOpen überschreibt nicht

- validate.py: --json durch --type-json im epilog aktualisiert
- index.html: closeModal() setzt wasViewModalOpen nur wenn noch nicht gesetzt
This commit is contained in:
Michael 2026-05-03 14:12:36 +02:00
parent d808013395
commit 070ebc3edd
2 changed files with 2 additions and 2 deletions

View file

@ -229,7 +229,7 @@ def main():
Beispiele: Beispiele:
python validate.py templates/system/code_reviewer.json python validate.py templates/system/code_reviewer.json
python validate.py --all python validate.py --all
python validate.py --json templates/ python validate.py --type-json
""", """,
) )
parser.add_argument("path", nargs="?", help="Pfad zum Template oder Verzeichnis") parser.add_argument("path", nargs="?", help="Pfad zum Template oder Verzeichnis")

View file

@ -873,7 +873,7 @@ $ python web/serve.py</div>
} }
function closeModal() { function closeModal() {
wasViewModalOpen = true; wasViewModalOpen = wasViewModalOpen || true;
document.getElementById('modal').classList.remove('active'); document.getElementById('modal').classList.remove('active');
} }