Opraven editacni box.

Korektury se jiz daji spravne opravovat.
This commit is contained in:
Tomas "Jethro" Pokorny 2015-12-05 11:17:24 +01:00
parent 0915838f26
commit 2a6dafd381
2 changed files with 8 additions and 7 deletions

View file

@ -125,6 +125,7 @@ function box_edit(button, action)
if (action == 'update') {
var text_el = document.getElementById(divbox.id + '-text');
text = text_el.innerHTML.unescapeHTML();
} else {
text = '';
}

View file

@ -60,7 +60,7 @@
onmouseout='box_onmouseout(this,{% if o.status = 'opraveno' %}1{% else %}0{% endif %})' >
<div class='corr-header'>
<div class='author'>{{o.autor}}</div>
<div class='author' id='op{{o.id}}-autor'>{{o.autor}}</div>
<div class='float-right'>
<form action='' onsubmit='save_scroll(this)' method='POST'>
{% csrf_token %}
@ -89,12 +89,12 @@
</button>
{% endif %}
{% if o.komentare %}
<button type='button' title="Korekturu nelze upravit &ndash; už ji někdo okomentoval">
<img src="/static/korektury/imgs/edit-gr.png"/>
</button>
{% if o.komentare %}
<button type='button' title="Korekturu nelze upravit &ndash; už ji někdo okomentoval">
<img src="/static/korektury/imgs/edit-gr.png"/>
</button>
{% else %}
<button type='button' onclick='box_edit(this);' title='Oprav opravu'>
<button type='button' onclick='box_edit(this,"update");' title='Oprav opravu'>
<img src="/static/korektury/imgs/edit.png"/>
</button>
{% endif %}
@ -105,7 +105,7 @@
<a href='#op{{o.id}}'><button type='button' title='Link na opravu'>
<img src="/static/korektury/imgs/link.png"/>
</button></a>
<button><a href='#op579'>
<button><a href='#TODO'>
<img title='Další oprava' src="/static/korektury/imgs/next.png"/>
</a></button>