You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by de...@apache.org on 2013/09/18 22:13:13 UTC

git commit: updated refs/heads/typeahead-jump-doc to 126662b

Updated Branches:
  refs/heads/typeahead-jump-doc e9bddf967 -> 126662b5e


Added clear:true to the notification for when a document doesn't exist so that it overwrites the generic error messaging


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

Branch: refs/heads/typeahead-jump-doc
Commit: 126662b5e2d77c0d28a4783dc624cd13276681b1
Parents: e9bddf9
Author: suelockwood <de...@gmail.com>
Authored: Wed Sep 18 16:13:06 2013 -0400
Committer: suelockwood <de...@gmail.com>
Committed: Wed Sep 18 16:13:06 2013 -0400

----------------------------------------------------------------------
 src/fauxton/app/modules/documents/views.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/126662b5/src/fauxton/app/modules/documents/views.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/documents/views.js b/src/fauxton/app/modules/documents/views.js
index d66c6da..09ef2b5 100644
--- a/src/fauxton/app/modules/documents/views.js
+++ b/src/fauxton/app/modules/documents/views.js
@@ -656,7 +656,8 @@ function(app, FauxtonAPI, Components, Documents, pouchdb, Codemirror, JSHint, re
         if (xhr.status === 404) {
           FauxtonAPI.addNotification({
             msg: 'The document does not exist',
-            type: 'error'
+            type: 'error',
+            clear: true
           });
           FauxtonAPI.navigate('/database/' + databaseId + '/_all_docs?limit=20');
         }