Use responseText for fail error

This commit is contained in:
2016-09-21 15:14:42 +02:00
parent 964ff40bca
commit ba916412b6

View File

@@ -30,7 +30,7 @@ function save_task(task_id, task_url) {
// jQuery sends the response data (if JSON), or an XHR object (if not JSON).
if (console) console.log('Failed saving', xhr_or_response_data);
$('#task-details').html(xhr_or_response_data.responseText);
$('#status-bar').text('Failed saving. ' + xhr_or_response_data);
$('#status-bar').text('Failed saving. ' + xhr_or_response_data.responseText);
})
.always(function() {
$button.attr('disabled', false);