Repository: nifi
Updated Branches:
  refs/heads/NIFI-744 05d4b067a -> e172d663d


NIFI-798:
- Adding special handling for ajax failures with a response code of 201.

Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/82a79f19
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/82a79f19
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/82a79f19

Branch: refs/heads/NIFI-744
Commit: 82a79f197107534776d34a53d874c97cefd395b0
Parents: 75ed16c
Author: Matt Gilman <[email protected]>
Authored: Thu Jul 30 22:57:56 2015 -0400
Committer: Matt Gilman <[email protected]>
Committed: Thu Jul 30 22:57:56 2015 -0400

----------------------------------------------------------------------
 .../nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-common.js        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/82a79f19/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-common.js
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-common.js
 
b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-common.js
index e08ad9e..06c34f9 100644
--- 
a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-common.js
+++ 
b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-common.js
@@ -252,7 +252,7 @@ nf.Common = {
                 } else {
                     $('#message-content').text(xhr.responseText);
                 }
-            } else if (xhr.status === 200) {
+            } else if (xhr.status === 200 || xhr.status === 201) {
                 $('#message-title').text('Parse Error');
                 if ($.trim(xhr.responseText) === '') {
                     $('#message-content').text('Unable to interpret response 
from NiFi.');

Reply via email to