Fauxton: update api bar with view query updates

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

Branch: refs/heads/api-options
Commit: 678d034a8ebe144c961467b8d25018a897e3494b
Parents: ad3edf8
Author: Garren Smith <[email protected]>
Authored: Wed Jan 15 17:32:52 2014 +0200
Committer: Garren Smith <[email protected]>
Committed: Wed Jan 15 17:32:52 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/678d034a/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 6786edf..1510485 100644
--- a/src/fauxton/app/addons/documents/routes.js
+++ b/src/fauxton/app/addons/documents/routes.js
@@ -304,6 +304,7 @@ function(app, FauxtonAPI, Documents, Databases) {
         this.documentsView = this.setView("#dashboard-lower-content", new 
Documents.Views.AllDocsList({
           collection: this.data.database.allDocs
         }));
+        //this.apiUrl = [this.data.database.allDocs.url("apiurl"), 
this.data.database.allDocs.documentation() ];
         return;
       }
 
@@ -320,6 +321,8 @@ function(app, FauxtonAPI, Documents, Databases) {
         nestedView: Documents.Views.Row,
         viewList: true
       }));
+
+      this.apiUrl = [this.data.indexedDocs.url("apiurl"), "docs"];
     },
 
     updateAllDocsFromPreview: function (event) {

Reply via email to