diff options
author | suelockwood <deathbearbrown@gmail.com> | 2013-09-09 17:00:24 -0400 |
---|---|---|
committer | suelockwood <deathbearbrown@gmail.com> | 2013-09-09 17:00:24 -0400 |
commit | 4ac5314ae15d6105113efc03678a85de46141329 (patch) | |
tree | 06963905d867ea25ce4c09ccf8127f6544b0225e | |
parent | 89e4c029b1f986741e5646d0d17f2115026b9b45 (diff) | |
download | couchdb-4ac5314ae15d6105113efc03678a85de46141329.tar.gz |
Breadcrumbs was missing the docID
-rw-r--r-- | src/fauxton/app/modules/documents/routes.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fauxton/app/modules/documents/routes.js b/src/fauxton/app/modules/documents/routes.js index 81c4d23ad..730b4bfde 100644 --- a/src/fauxton/app/modules/documents/routes.js +++ b/src/fauxton/app/modules/documents/routes.js @@ -30,11 +30,12 @@ function(app, FauxtonAPI, Documents, Databases) { disableLoader: true, selectedHeader: "Databases", initialize: function(route, masterLayout, options) { - var databaseName = options[0], docID = options[1]||'new'; + var databaseName = options[0]; + this.docID = options[1]||'new'; this.database = this.database || new Databases.Model({id: databaseName}); this.doc = new Documents.Doc({ - _id: docID + _id: this.docID }, { database: this.database }); |