Show More
@@ -40,9 +40,8 b' function getForm() {' | |||||
40 | return $('.post-form-w'); |
|
40 | return $('.post-form-w'); | |
41 | } |
|
41 | } | |
42 |
|
42 | |||
43 |
function |
|
43 | function resetFormPosition() { | |
44 | var form = getForm(); |
|
44 | var form = getForm(); | |
45 | //form.hide(); |
|
|||
46 | form.insertAfter($('.thread')); |
|
45 | form.insertAfter($('.thread')); | |
47 | } |
|
46 | } | |
48 |
|
47 |
@@ -269,7 +269,7 b' function updateOnPost(response, statusTe' | |||||
269 | showAsErrors(form, ''); |
|
269 | showAsErrors(form, ''); | |
270 |
|
270 | |||
271 | if (status === 'ok') { |
|
271 | if (status === 'ok') { | |
272 |
|
|
272 | resetFormPosition(); | |
273 | resetForm(form); |
|
273 | resetForm(form); | |
274 | getThreadDiff(); |
|
274 | getThreadDiff(); | |
275 | scrollToBottom(); |
|
275 | scrollToBottom(); | |
@@ -332,5 +332,4 b' function processNewPost(post) {' | |||||
332 | } |
|
332 | } | |
333 |
|
333 | |||
334 | $('#autoupdate').click(getThreadDiff); |
|
334 | $('#autoupdate').click(getThreadDiff); | |
335 | closeForm(); |
|
|||
336 | }); |
|
335 | }); |
@@ -48,7 +48,7 b'' | |||||
48 | </div> |
|
48 | </div> | |
49 | <div><a href="{% url "staticpage" name="help" %}"> |
|
49 | <div><a href="{% url "staticpage" name="help" %}"> | |
50 | {% trans 'Text syntax' %}</a></div> |
|
50 | {% trans 'Text syntax' %}</a></div> | |
51 |
<div><a href="#" onClick=" |
|
51 | <div><a href="#" onClick="resetFormPosition(); return false;">{% trans 'Close form' %}</a></div> | |
52 | </div> |
|
52 | </div> | |
53 | </div> |
|
53 | </div> | |
54 |
|
54 |
General Comments 0
You need to be logged in to leave comments.
Login now