couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject fauxton commit: updated refs/heads/Update-Sidebar to 9a2e113
Date Tue, 22 Jul 2014 07:41:24 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/Update-Sidebar c713f6336 -> 9a2e113bd


Fix metadata url api


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

Branch: refs/heads/Update-Sidebar
Commit: 9a2e113bd04b7f8164e6021c5b93a760b0376538
Parents: c713f63
Author: Garren Smith <garren.smith@gmail.com>
Authored: Tue Jul 22 09:41:08 2014 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Tue Jul 22 09:41:08 2014 +0200

----------------------------------------------------------------------
 app/addons/documents/routes.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/9a2e113b/app/addons/documents/routes.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/routes.js b/app/addons/documents/routes.js
index df58de4..276e3fc 100644
--- a/app/addons/documents/routes.js
+++ b/app/addons/documents/routes.js
@@ -190,11 +190,11 @@ function(app, FauxtonAPI, Documents, Databases, Resources) {
       this.toolsView && this.toolsView.remove();
       this.viewEditor && this.viewEditor.remove();
 
-      var DesignDocInfo = new Resources.DdocInfo({_id: "_design/"+ddoc},{database: this.data.database
});
+      var designDocInfo = new Resources.DdocInfo({_id: "_design/"+ddoc},{database: this.data.database
});
 
       this.setView("#dashboard-lower-content", new Documents.Views.DdocInfo({
         ddocName: ddoc,
-        model: DesignDocInfo
+        model: designDocInfo
       }));
 
       this.sidebar.setSelectedTab(app.utils.removeSpecialCharacters(ddoc)+"_metadata");
@@ -205,6 +205,8 @@ function(app, FauxtonAPI, Documents, Databases, Resources) {
         ];
       };
 
+      this.apiUrl = [designDocInfo.url('apiurl'), designDocInfo.documentation() ];
+
     },
     tempFn:  function(databaseName, ddoc, fn){
       this.setView("#dashboard-upper-content", new Documents.Views.temp({}));


Mime
View raw message