Repository: couchdb-fauxton Updated Branches: refs/heads/master a45d28014 -> 5fcb06539
Add include_docs=true to _replication/_all_docs Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/5fcb0653 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/5fcb0653 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/5fcb0653 Branch: refs/heads/master Commit: 5fcb06539609be6e4c31e4c472db9eae5fbe6e97 Parents: a45d280 Author: Michelle Phung <[email protected]> Authored: Tue Oct 27 11:01:55 2015 -0400 Committer: Michelle Phung <[email protected]> Committed: Wed Oct 28 10:42:40 2015 -0400 ---------------------------------------------------------------------- app/addons/documents/routes-documents.js | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/5fcb0653/app/addons/documents/routes-documents.js ---------------------------------------------------------------------- diff --git a/app/addons/documents/routes-documents.js b/app/addons/documents/routes-documents.js index 0b4042d..f240501 100644 --- a/app/addons/documents/routes-documents.js +++ b/app/addons/documents/routes-documents.js @@ -119,6 +119,14 @@ function (app, FauxtonAPI, BaseRoute, Documents, Changes, ChangesActions, Databa this.leftheader.updateCrumbs(this.getCrumbs(this.database)); + // includes_docs = true if you are visiting the _replicator/_users databases + if ( ['_replicator', '_users'].indexOf(databaseName) > -1) { + docParams.include_docs = true; + urlParams = params.docParams; + var updatedURL = FauxtonAPI.urls('allDocs', 'app', databaseName, '?' + $.param(urlParams)); + FauxtonAPI.navigate(updatedURL, {trigger: false, replace: true}); + } + this.database.buildAllDocs(docParams); collection = this.database.allDocs;
