diff options
author | suelockwood <deathbear@apache.org> | 2014-01-13 16:19:29 -0500 |
---|---|---|
committer | suelockwood <deathbear@apache.org> | 2014-01-13 16:19:29 -0500 |
commit | e5cac79282b7a631b969b59f9647b3a3dd47c37b (patch) | |
tree | c008acceb604985cbd1d38eb01e355542dcfea6d | |
parent | afd66a9ceed5af91b2db48f80b3fcf9e7fc04f3e (diff) | |
download | couchdb-e5cac79282b7a631b969b59f9647b3a3dd47c37b.tar.gz |
Fix for the link to edit docs on reductions
-rw-r--r-- | src/fauxton/app/addons/documents/resources.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fauxton/app/addons/documents/resources.js b/src/fauxton/app/addons/documents/resources.js index 0fd99f195..831d5e3d0 100644 --- a/src/fauxton/app/addons/documents/resources.js +++ b/src/fauxton/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() { |