couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject git commit: updated refs/heads/typeahead-jump-doc to 126662b
Date Wed, 18 Sep 2013 20:13:13 GMT
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 <deathbearbrown@gmail.com>
Authored: Wed Sep 18 16:13:06 2013 -0400
Committer: suelockwood <deathbearbrown@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');
         }


Mime
View raw message