couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [15/15] fauxton commit: updated refs/heads/import-master to 8cb432c
Date Sat, 07 Jun 2014 21:04:39 GMT
Fauxton: Update breadcrumb on duplicate doc

Small fix that makes sure the breadcrumb is updated with the new doc id
when a document is duplicated.


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

Branch: refs/heads/import-master
Commit: 8cb432c5f35022cc77cc115c78cffde1a5e1cc7c
Parents: 453c831
Author: Garren Smith <garren.smith@gmail.com>
Authored: Thu Jun 5 12:30:44 2014 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Fri Jun 6 09:21:35 2014 +0200

----------------------------------------------------------------------
 app/addons/documents/routes.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/8cb432c5/app/addons/documents/routes.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/routes.js b/app/addons/documents/routes.js
index 6d67dae..a21bdaa 100644
--- a/app/addons/documents/routes.js
+++ b/app/addons/documents/routes.js
@@ -71,6 +71,7 @@ function(app, FauxtonAPI, Documents, Databases) {
       var doc = this.doc,
       docView = this.docView,
       database = this.database;
+      this.docID = newId;
 
       doc.copy(newId).then(function () {
         doc.set({_id: newId});


Mime
View raw message