summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuelockwood <deathbearbrown@gmail.com>2013-09-18 16:13:06 -0400
committersuelockwood <deathbearbrown@gmail.com>2013-09-18 16:13:06 -0400
commit126662b5e2d77c0d28a4783dc624cd13276681b1 (patch)
treea0449c85fb9ab49f5f9dffcd16f0d494fd3cabf4
parente9bddf967c9a92a56e3e99d3fa2be40705f0c428 (diff)
downloadcouchdb-typeahead-jump-doc.tar.gz
Added clear:true to the notification for when a document doesn't exist so that it overwrites the generic error messagingtypeahead-jump-doc
-rw-r--r--src/fauxton/app/modules/documents/views.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fauxton/app/modules/documents/views.js b/src/fauxton/app/modules/documents/views.js
index d66c6da7c..09ef2b5a1 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');
}