Show More
@@ -273,6 +273,7 b' function updateOnPost(response, statusTe' | |||
|
273 | 273 | |
|
274 | 274 | if (status === 'ok') { |
|
275 | 275 | resetForm(form); |
|
276 | getThreadDiff(); | |
|
276 | 277 | } else { |
|
277 | 278 | var errors = json.errors; |
|
278 | 279 | for (var i = 0; i < errors.length; i++) { |
@@ -322,7 +323,7 b' function processNewPost(post) {' | |||
|
322 | 323 | beforeSubmit: function(arr, $form, options) { |
|
323 | 324 | showAsErrors($('form'), gettext('Sending message...')); |
|
324 | 325 | }, |
|
325 |
success: |
|
|
326 | success: updateOnPost, | |
|
326 | 327 | url: '/api/add_post/' + threadId + '/' |
|
327 | 328 | }; |
|
328 | 329 |
General Comments 0
You need to be logged in to leave comments.
Login now