couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject fauxton commit: updated refs/heads/master to c5fc701
Date Tue, 12 Jul 2016 15:25:39 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 9cf388a82 -> c5fc7018a


display not exist error just on 404

just in case of a 404 the notification "The document does not
exist" is relevant.

PR: #743
PR-URL: https://github.com/apache/couchdb-fauxton/pull/743
Reviewed-By: garren smith <garren.smith@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/c5fc7018
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/c5fc7018
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/c5fc7018

Branch: refs/heads/master
Commit: c5fc7018ac4465362576cc996d9a4ff3f7870b92
Parents: 9cf388a
Author: Robert Kowalski <robertkowalski@apache.org>
Authored: Thu Jul 7 18:04:59 2016 +0200
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Tue Jul 12 17:25:22 2016 +0200

----------------------------------------------------------------------
 app/addons/documents/doc-editor/actions.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/c5fc7018/app/addons/documents/doc-editor/actions.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/doc-editor/actions.js b/app/addons/documents/doc-editor/actions.js
index 9b6a1fc..9331ddd 100644
--- a/app/addons/documents/doc-editor/actions.js
+++ b/app/addons/documents/doc-editor/actions.js
@@ -36,7 +36,10 @@ function initDocEditor (params) {
       params.onLoaded();
     }
   }, function (xhr, reason, msg) {
-    errorNotification('The document does not exist.');
+    if (xhr.status === 404) {
+      errorNotification('The document does not exist.');
+    }
+
     FauxtonAPI.navigate(FauxtonAPI.urls('allDocs', 'app', params.database.id, ''));
   });
 }


Mime
View raw message