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 %}