Use responseText for fail error
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user