mirror of https://github.com/apache/nifi.git
NIFI-798:
- Adding special handling for ajax failures with a response code of 201.
This commit is contained in:
parent
75ed16c8fe
commit
82a79f1971
|
@ -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.');
|
||||||
|
|
Loading…
Reference in New Issue