You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2014/07/22 17:26:50 UTC

[59/59] [abbrv] fauxton commit: updated refs/heads/master to 4e37185

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/bc4db509
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/bc4db509
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/bc4db509

Branch: refs/heads/master
Commit: bc4db509aaa5d04bde0a5b925ad4ba1128fbf170
Parents: ce99007
Author: Garren Smith <ga...@gmail.com>
Authored: Tue Jul 22 09:41:08 2014 +0200
Committer: Garren Smith <ga...@gmail.com>
Committed: Tue Jul 22 17:23:49 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/bc4db509/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({}));