diff options
author | suelockwood <deathbearbrown@gmail.com> | 2013-09-18 16:13:06 -0400 |
---|---|---|
committer | suelockwood <deathbearbrown@gmail.com> | 2013-09-18 16:13:06 -0400 |
commit | 126662b5e2d77c0d28a4783dc624cd13276681b1 (patch) | |
tree | a0449c85fb9ab49f5f9dffcd16f0d494fd3cabf4 | |
parent | e9bddf967c9a92a56e3e99d3fa2be40705f0c428 (diff) | |
download | couchdb-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.js | 3 |
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'); } |