From befb013e58c618a5c8f47b196c33a7a94fa7fe8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Tue, 11 Feb 2025 14:57:20 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20zobrazov=C3=A1n=C3=AD=20tla=C4=8D=C3=ADt?= =?UTF-8?q?ek=20na=20okomentov=C3=A1n=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- korektury/static/korektury/opraf.css | 8 ++++---- .../templates/korektury/korekturovatko/__oprava.html | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/korektury/static/korektury/opraf.css b/korektury/static/korektury/opraf.css index 515415ca..184f060d 100644 --- a/korektury/static/korektury/opraf.css +++ b/korektury/static/korektury/opraf.css @@ -27,25 +27,25 @@ img{background:white;} --rgb: 255, 0, 0; [value="k_oprave"] { display: none } - [value="notcomment"] { display: none } + .komentovat_disabled { display: none } } [data-opravastatus="opraveno"] { --rgb: 0, 0, 255; [value="opraveno"] { display: none } - [value="comment"] { display: none } + .komentovat { display: none } } [data-opravastatus="neni_chyba"] { --rgb: 128, 128, 128; [value="neni_chyba"] { display: none } - [value="comment"] { display: none } + .komentovat { display: none } } [data-opravastatus="k_zaneseni"] { --rgb: 0, 255, 0; [value="k_zaneseni"] { display: none } - [value="notcomment"] { display: none } + .komentovat { display: none } } /* Skrývání korektur */ diff --git a/korektury/templates/korektury/korekturovatko/__oprava.html b/korektury/templates/korektury/korekturovatko/__oprava.html index 6d028217..7cef69ca 100644 --- a/korektury/templates/korektury/korekturovatko/__oprava.html +++ b/korektury/templates/korektury/korekturovatko/__oprava.html @@ -37,10 +37,10 @@ {# FIXME Udělat z toho tlačítko? #} ✏️ {# FIXME Odlišit jinak než pomocí opacity? #} - - @@ -87,7 +87,7 @@ this.htmlElement.getElementsByClassName('toggle-vis')[0].addEventListener('click', _ => this.#toggle_visibility()); for (const button of this.htmlElement.getElementsByClassName('action')) button.addEventListener('click', async event => this.#zmenStavKorektury(event)); - this.htmlElement.getElementsByClassName('comment')[0].addEventListener('click', _ => this.#comment()) + this.htmlElement.getElementsByClassName('komentovat')[0].addEventListener('click', _ => this.#comment()) this.htmlElement.getElementsByClassName('del')[0].addEventListener('click', _ => this.#delete()); const odkaz_editace = this.htmlElement.getElementsByClassName('edit')[0]; odkaz_editace.href = odkaz_editace.href.replace("-1", this.id);