You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by de...@apache.org on 2014/01/13 22:19:41 UTC
git commit: updated refs/heads/master to e5cac79
Updated Branches:
refs/heads/master afd66a9ce -> e5cac7928
Fix for the link to edit docs on reductions
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/e5cac792
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/e5cac792
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/e5cac792
Branch: refs/heads/master
Commit: e5cac79282b7a631b969b59f9647b3a3dd47c37b
Parents: afd66a9
Author: suelockwood <de...@apache.org>
Authored: Mon Jan 13 16:19:29 2014 -0500
Committer: suelockwood <de...@apache.org>
Committed: Mon Jan 13 16:19:29 2014 -0500
----------------------------------------------------------------------
src/fauxton/app/addons/documents/resources.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/e5cac792/src/fauxton/app/addons/documents/resources.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/documents/resources.js b/src/fauxton/app/addons/documents/resources.js
index 0fd99f1..831d5e3 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() {