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);