You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by mc...@apache.org on 2015/07/31 05:01:47 UTC

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

Repository: nifi
Updated Branches:
  refs/heads/develop 75ed16c8f -> 82a79f197


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/develop
Commit: 82a79f197107534776d34a53d874c97cefd395b0
Parents: 75ed16c
Author: Matt Gilman <ma...@gmail.com>
Authored: Thu Jul 30 22:57:56 2015 -0400
Committer: Matt Gilman <ma...@gmail.com>
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.');