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).
|
// jQuery sends the response data (if JSON), or an XHR object (if not JSON).
|
||||||
if (console) console.log('Failed saving', xhr_or_response_data);
|
if (console) console.log('Failed saving', xhr_or_response_data);
|
||||||
$('#task-details').html(xhr_or_response_data.responseText);
|
$('#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() {
|
.always(function() {
|
||||||
$button.attr('disabled', false);
|
$button.attr('disabled', false);
|
||||||
|
Reference in New Issue
Block a user