NIFI-798:

- Adding special handling for ajax failures with a response code of 201.
This commit is contained in:
Matt Gilman 2015-07-30 22:57:56 -04:00
parent 75ed16c8fe
commit 82a79f1971
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ nf.Common = {
} else { } else {
$('#message-content').text(xhr.responseText); $('#message-content').text(xhr.responseText);
} }
} else if (xhr.status === 200) { } else if (xhr.status === 200 || xhr.status === 201) {
$('#message-title').text('Parse Error'); $('#message-title').text('Parse Error');
if ($.trim(xhr.responseText) === '') { if ($.trim(xhr.responseText) === '') {
$('#message-content').text('Unable to interpret response from NiFi.'); $('#message-content').text('Unable to interpret response from NiFi.');