From 1d6c4773351b6a411ec4cc624209fa2060ebb4f1 Mon Sep 17 00:00:00 2001 From: Jukka Lampikoski Date: Thu, 12 Mar 2026 10:16:13 +0200 Subject: [PATCH] Poista kokousmuistio dokumenttien kategoriavalinnoista MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Poistettu kokousmuistio-vaihtoehto kategoria-dropdownista - Piilotetaan koko kategoria-kenttä kun luodaan/muokataan kokousmuistiota Co-Authored-By: Claude Opus 4.6 --- index.html | 1 - script.js | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index b5e4a13..10d20cd 100644 --- a/index.html +++ b/index.html @@ -840,7 +840,6 @@ - diff --git a/script.js b/script.js index f82b633..38b5ba1 100644 --- a/script.js +++ b/script.js @@ -5427,6 +5427,9 @@ function toggleDocMeetingFields(category) { document.getElementById('doc-edit-meeting-fields').style.display = isMeeting ? '' : 'none'; document.getElementById('doc-edit-file').parentElement.style.display = isMeeting ? 'none' : ''; document.getElementById('doc-edit-desc-group').style.display = isMeeting ? 'none' : ''; + // Piilota kategoria-kenttä kokousmuistiossa (asetetaan automaattisesti) + const catGroup = document.getElementById('doc-edit-category').closest('.form-group'); + if (catGroup) catGroup.style.display = isMeeting ? 'none' : ''; } document.getElementById('doc-edit-category')?.addEventListener('change', (e) => {