##// END OF EJS Templates
Show some more info on a server error in the form
neko259 -
r1634:ed076afa default
parent child Browse files
Show More
@@ -441,8 +441,12 b' function updateNodeAttr(oldNode, newNode'
441 showAsErrors(form, gettext('Sending message...'));
441 showAsErrors(form, gettext('Sending message...'));
442 },
442 },
443 success: updateOnPost,
443 success: updateOnPost,
444 error: function() {
444 error: function(xhr, textStatus, errorString) {
445 showAsErrors(form, gettext('Server error!'));
445 var errorText = gettext('Server error: ') + textStatus;
446 if (errorString) {
447 errorText += ' / ' + errorString;
448 }
449 showAsErrors(form, errorText);
446 },
450 },
447 url: '/api/add_post/' + threadId + '/',
451 url: '/api/add_post/' + threadId + '/',
448 timeout: POST_AJAX_TIMEOUT
452 timeout: POST_AJAX_TIMEOUT
General Comments 0
You need to be logged in to leave comments. Login now