# HG changeset patch # User neko259 # Date 2015-01-09 06:40:48 # Node ID cc47d11dacfd1bab2490ed682edb5c19efb695ad # Parent d17fdea912af0563135468862b79edfe38458f6c Fixed resetting form after thread update diff --git a/boards/static/js/thread_update.js b/boards/static/js/thread_update.js --- a/boards/static/js/thread_update.js +++ b/boards/static/js/thread_update.js @@ -273,6 +273,7 @@ function updateOnPost(response, statusTe if (status === 'ok') { resetForm(form); + getThreadDiff(); } else { var errors = json.errors; for (var i = 0; i < errors.length; i++) { @@ -322,7 +323,7 @@ function processNewPost(post) { beforeSubmit: function(arr, $form, options) { showAsErrors($('form'), gettext('Sending message...')); }, - success: getThreadDiff, + success: updateOnPost, url: '/api/add_post/' + threadId + '/' };