couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [16/52] [abbrv] fauxton commit: updated refs/heads/import-master to d11b90b
Date Wed, 12 Feb 2014 06:20:10 GMT
Fix for the link to edit docs on reductions


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

Branch: refs/heads/import-master
Commit: 7e2c615a43b399145b65c4bcde509000cbf6853c
Parents: fb90049
Author: suelockwood <deathbear@apache.org>
Authored: Mon Jan 13 16:19:29 2014 -0500
Committer: suelockwood <deathbear@apache.org>
Committed: Mon Jan 13 16:19:29 2014 -0500

----------------------------------------------------------------------
 app/addons/documents/resources.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/7e2c615a/app/addons/documents/resources.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/resources.js b/app/addons/documents/resources.js
index 0fd99f1..831d5e3 100644
--- a/app/addons/documents/resources.js
+++ b/app/addons/documents/resources.js
@@ -238,8 +238,6 @@ function(app, FauxtonAPI) {
       return "docs";
     },
     url: function(context) {
-      if (!this.isEditable()) return false;
-
       return this.collection.database.url(context) + "/" + this.safeID();
     },
 
@@ -247,7 +245,9 @@ function(app, FauxtonAPI) {
       return this.docType() != "reduction";
     },
     safeID: function() {
-      return app.utils.safeURLName(this.id);
+      var id = this.id || this.get("id");
+
+      return app.utils.safeURLName(id);
     },
 
     prettyJSON: function() {


Mime
View raw message