Browse Source

korektury | Skryvani korektur i s komentari.

remotes/origin/bug
Tomas Jethro Pokorny 8 years ago
parent
commit
f3394c7cc0
  1. 2
      korektury/static/korektury/opraf.js
  2. 2
      korektury/templates/korektury/opraf.html

2
korektury/static/korektury/opraf.js

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

2
korektury/templates/korektury/opraf.html

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

Loading…
Cancel
Save