Čistka scrollování
This commit is contained in:
parent
ad2d1e676c
commit
af41ca5784
5 changed files with 0 additions and 11 deletions
|
@ -12,7 +12,6 @@
|
|||
<input type="hidden" size="3" id="commform-img-id" name="img-id"/>
|
||||
<input type="hidden" size="3" id="commform-id" name="id"/>
|
||||
<input type="hidden" size="3" id="commform-action" name="action"/>
|
||||
<input type="hidden" size="3" id="commform-action" name="scroll"/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
<form action='' method='POST'>
|
||||
{% csrf_token %}
|
||||
<input type='hidden' name='id' value='{{k.id}}'>
|
||||
<input type='hidden' name='scroll'>
|
||||
<button style="display: none" type='submit' name='action' value='del-comment' title='Smaž komentář'
|
||||
onclick='return confirm("Opravdu smazat komentář?")'>
|
||||
<img src="{% static "korektury/imgs/delete.png" %}"/>
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
<form action='' method='POST'>
|
||||
{% csrf_token %}
|
||||
<input type='hidden' name='id' value='{{o.id}}'>
|
||||
<input type='hidden' name='scroll'>
|
||||
|
||||
<button style="display: none" type='submit' name='action' value='del' title='Smaž opravu'>
|
||||
<img src="{% static "korektury/imgs/delete.png"%}"/>
|
||||
|
|
|
@ -24,7 +24,4 @@
|
|||
["img-{{s.strana}}", [{% for o in s.op_id %}["op{{o.id}}",{{o.x}},{{o.y}}],{% endfor %}[]]],
|
||||
{% endfor %}
|
||||
[]]
|
||||
{% if scroll %}
|
||||
window.scrollTo(0,{{scroll}});
|
||||
{% endif %}
|
||||
</script>
|
||||
|
|
|
@ -61,7 +61,6 @@ class KorekturyView(generic.TemplateView):
|
|||
|
||||
def post(self, request, *args, **kwargs):
|
||||
q = request.POST
|
||||
scroll = q.get('scroll')
|
||||
|
||||
# prirazeni autora podle prihlaseni
|
||||
autor_user = request.user
|
||||
|
@ -70,9 +69,6 @@ class KorekturyView(generic.TemplateView):
|
|||
if not autor:
|
||||
return HttpResponseForbidden()
|
||||
|
||||
if not scroll:
|
||||
scroll = 0
|
||||
|
||||
action = q.get('action')
|
||||
if (action == ''): # Přidej
|
||||
x = int(q.get('x'))
|
||||
|
@ -119,7 +115,6 @@ class KorekturyView(generic.TemplateView):
|
|||
self.pdf.status = status
|
||||
self.pdf.save()
|
||||
context = self.get_context_data()
|
||||
context['scroll'] = scroll
|
||||
context['autor'] = autor
|
||||
return render(request, 'korektury/korekturovatko/htmlstrana.html', context)
|
||||
|
||||
|
|
Loading…
Reference in a new issue