Browse Source

Opraven editacni box.

Korektury se jiz daji spravne opravovat.
remotes/origin/opraf
parent
commit
2a6dafd381
  1. 1
      korektury/static/korektury/opraf.js
  2. 6
      korektury/templates/korektury/opraf.html

1
korektury/static/korektury/opraf.js

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

6
korektury/templates/korektury/opraf.html

@ -60,7 +60,7 @@
onmouseout='box_onmouseout(this,{% if o.status = 'opraveno' %}1{% else %}0{% endif %})' > onmouseout='box_onmouseout(this,{% if o.status = 'opraveno' %}1{% else %}0{% endif %})' >
<div class='corr-header'> <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'> <div class='float-right'>
<form action='' onsubmit='save_scroll(this)' method='POST'> <form action='' onsubmit='save_scroll(this)' method='POST'>
{% csrf_token %} {% csrf_token %}
@ -94,7 +94,7 @@
<img src="/static/korektury/imgs/edit-gr.png"/> <img src="/static/korektury/imgs/edit-gr.png"/>
</button> </button>
{% else %} {% 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"/> <img src="/static/korektury/imgs/edit.png"/>
</button> </button>
{% endif %} {% endif %}
@ -105,7 +105,7 @@
<a href='#op{{o.id}}'><button type='button' title='Link na opravu'> <a href='#op{{o.id}}'><button type='button' title='Link na opravu'>
<img src="/static/korektury/imgs/link.png"/> <img src="/static/korektury/imgs/link.png"/>
</button></a> </button></a>
<button><a href='#op579'> <button><a href='#TODO'>
<img title='Další oprava' src="/static/korektury/imgs/next.png"/> <img title='Další oprava' src="/static/korektury/imgs/next.png"/>
</a></button> </a></button>

Loading…
Cancel
Save