From 2a6dafd3819e28fb0f3dd2cb4c97b0e3d2b8d4d5 Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Sat, 5 Dec 2015 11:17:24 +0100 Subject: [PATCH] Opraven editacni box. Korektury se jiz daji spravne opravovat. --- korektury/static/korektury/opraf.js | 1 + korektury/templates/korektury/opraf.html | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/korektury/static/korektury/opraf.js b/korektury/static/korektury/opraf.js index 284a6864..1d56da31 100644 --- a/korektury/static/korektury/opraf.js +++ b/korektury/static/korektury/opraf.js @@ -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 = ''; } diff --git a/korektury/templates/korektury/opraf.html b/korektury/templates/korektury/opraf.html index 7267c2b4..9bb1525e 100644 --- a/korektury/templates/korektury/opraf.html +++ b/korektury/templates/korektury/opraf.html @@ -60,7 +60,7 @@ onmouseout='box_onmouseout(this,{% if o.status = 'opraveno' %}1{% else %}0{% endif %})' >
-
{{o.autor}}
+
{{o.autor}}
{% csrf_token %} @@ -89,12 +89,12 @@ {% endif %} - {% if o.komentare %} - + {% if o.komentare %} + {% else %} - {% endif %} @@ -105,7 +105,7 @@ -