You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by dc...@apache.org on 2014/08/14 01:26:14 UTC

[26/50] couchdb commit: updated refs/heads/1.6.x to eeb31cb

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/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/698f55b1
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/698f55b1
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/698f55b1

Branch: refs/heads/1.6.x
Commit: 698f55b1bd72d2ab3585cf9be239095f2c38a2d3
Parents: 3e981dc
Author: Garren Smith <ga...@gmail.com>
Authored: Thu Jun 5 12:30:44 2014 +0200
Committer: Garren Smith <ga...@gmail.com>
Committed: Fri Jun 6 09:21:35 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/698f55b1/src/fauxton/app/addons/documents/routes.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/documents/routes.js b/src/fauxton/app/addons/documents/routes.js
index 6d67dae..a21bdaa 100644
--- a/src/fauxton/app/addons/documents/routes.js
+++ b/src/fauxton/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});