From 67d61cabb7b86e3c3ae423ce0f36b2b40957eda6 Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Sat, 12 Nov 2016 15:41:30 +0100 Subject: [PATCH] U sbalenych korektur nezobrazovat ikony. --- korektury/static/korektury/opraf.js | 3 +++ korektury/templates/korektury/opraf.html | 18 ++++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/korektury/static/korektury/opraf.js b/korektury/static/korektury/opraf.js index a6d6244c..75591fe7 100644 --- a/korektury/static/korektury/opraf.js +++ b/korektury/static/korektury/opraf.js @@ -126,11 +126,14 @@ function img_click(element, ev) { function toggle_visibility(button){ var divbox = button.parentNode.parentNode.parentNode; var id = divbox.id; + var buttondiv = document.getElementById(id+'-buttons') var text = document.getElementById(id+'-body'); if (text.style.display == 'none'){ text.style.display = 'block'; + buttondiv.style.display = 'inline-block'; }else { text.style.display = 'none'; + buttondiv.style.display = 'none'; } for (var i=0;i
-
{{o.autor}}
-
+ {{o.autor}} + +
{% csrf_token %} @@ -147,11 +148,12 @@ + -
+
{{o.text}}
@@ -159,17 +161,17 @@ {% for k in o.komentare %}
-
+
{{k.autor}}
-
- + + {% csrf_token %} @@ -178,7 +180,7 @@
-
+
{{k.text}}
{% endfor %}