Show More
@@ -57,6 +57,7 b" PARAMETER_MODERATOR = 'moderator'" | |||||
57 | PARAMETER_POST = 'post' |
|
57 | PARAMETER_POST = 'post' | |
58 | PARAMETER_OP_ID = 'opening_post_id' |
|
58 | PARAMETER_OP_ID = 'opening_post_id' | |
59 | PARAMETER_NEED_OPEN_LINK = 'need_open_link' |
|
59 | PARAMETER_NEED_OPEN_LINK = 'need_open_link' | |
|
60 | PARAMETER_REPLY_LINK = 'reply_link' | |||
60 |
|
61 | |||
61 | DIFF_TYPE_HTML = 'html' |
|
62 | DIFF_TYPE_HTML = 'html' | |
62 | DIFF_TYPE_JSON = 'json' |
|
63 | DIFF_TYPE_JSON = 'json' | |
@@ -346,6 +347,8 b' class Post(models.Model, Viewable):' | |||||
346 | params['post'] = self |
|
347 | params['post'] = self | |
347 | if PARAMETER_TRUNCATED in request.GET: |
|
348 | if PARAMETER_TRUNCATED in request.GET: | |
348 | params[PARAMETER_TRUNCATED] = True |
|
349 | params[PARAMETER_TRUNCATED] = True | |
|
350 | else: | |||
|
351 | params[PARAMETER_REPLY_LINK] = True | |||
349 |
|
352 | |||
350 | return render_to_string('boards/api_post.html', params) |
|
353 | return render_to_string('boards/api_post.html', params) | |
351 | elif format_type == DIFF_TYPE_JSON: |
|
354 | elif format_type == DIFF_TYPE_JSON: |
@@ -272,6 +272,7 b' function updateOnPost(response, statusTe' | |||||
272 | closeForm(); |
|
272 | closeForm(); | |
273 | resetForm(form); |
|
273 | resetForm(form); | |
274 | getThreadDiff(); |
|
274 | getThreadDiff(); | |
|
275 | scrollToBottom(); | |||
275 | } else { |
|
276 | } else { | |
276 | var errors = json.errors; |
|
277 | var errors = json.errors; | |
277 | for (var i = 0; i < errors.length; i++) { |
|
278 | for (var i = 0; i < errors.length; i++) { | |
@@ -282,8 +283,6 b' function updateOnPost(response, statusTe' | |||||
282 | showAsErrors(form, error); |
|
283 | showAsErrors(form, error); | |
283 | } |
|
284 | } | |
284 | } |
|
285 | } | |
285 |
|
||||
286 | scrollToBottom(); |
|
|||
287 | } |
|
286 | } | |
288 |
|
287 | |||
289 | /** |
|
288 | /** |
General Comments 0
You need to be logged in to leave comments.
Login now