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 @@ -346,6 +346,7 @@ function updateOnPost(response, statusTe var status = json.status; showAsErrors(form, ''); + $('.post-form-w').unblock(); if (status === 'ok') { resetFormPosition(); @@ -438,7 +439,7 @@ function updateNodeAttr(oldNode, newNode if (form.length > 0) { var options = { beforeSubmit: function(arr, form, options) { - showAsErrors(form, gettext('Sending message...')); + $('.post-form-w').block({ message: gettext('Sending message...') }); }, success: updateOnPost, error: function(xhr, textStatus, errorString) { @@ -447,6 +448,7 @@ function updateNodeAttr(oldNode, newNode errorText += ' / ' + errorString; } showAsErrors(form, errorText); + $('.post-form-w').unblock(); }, url: '/api/add_post/' + threadId + '/', timeout: POST_AJAX_TIMEOUT