korektury | Skryvani korektur i s komentari.

This commit is contained in:
Tomas Jethro Pokorny 2016-02-28 02:13:49 +01:00
parent 9456807a80
commit f3394c7cc0
2 changed files with 3 additions and 1 deletions

View file

@ -126,7 +126,7 @@ function img_click(element, ev) {
function toggle_visibility(button){ function toggle_visibility(button){
var divbox = button.parentNode.parentNode.parentNode; var divbox = button.parentNode.parentNode.parentNode;
var id = divbox.id; var id = divbox.id;
var text = document.getElementById(id+'-text'); var text = document.getElementById(id+'-body');
if (text.style.display == 'none'){ if (text.style.display == 'none'){
text.style.display = 'block'; text.style.display = 'block';
}else { }else {

View file

@ -150,6 +150,7 @@
</div> </div>
</div> </div>
<div class='corr-body' id='op{{o.id}}-body'>
<div id='op{{o.id}}-text'>{{o.text}}</div> <div id='op{{o.id}}-text'>{{o.text}}</div>
{% for k in o.komentare %} {% for k in o.komentare %}
@ -178,6 +179,7 @@
<div id='kt{{k.id}}'>{{k.text}}</div> <div id='kt{{k.id}}'>{{k.text}}</div>
</div> </div>
{% endfor %} {% endfor %}
</div>
</div> </div>
{% endfor %} {% endfor %}