summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-01-13 05:12:18 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-01-13 05:12:18 +0000
commit07e761ad63e781367778c1324e74e6718d8d54af (patch)
tree12166c7ff68351b3b7c1281f12349292ec070de8 /share
parentb9f59ca2986075112ff1de42320168affa10921e (diff)
use config info for users db
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@898650 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r--share/www/script/futon.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/www/script/futon.js b/share/www/script/futon.js
index 33c72318..9b5ba2d0 100644
--- a/share/www/script/futon.js
+++ b/share/www/script/futon.js
@@ -120,7 +120,7 @@
$.couch.session({
success : function(userCtx) {
if (userCtx.name) {
- $("#userCtx .username").text(userCtx.name).attr({href : "/_utils/document.html?users/org.couchdb.user%3A"+userCtx.name});
+ $("#userCtx .username").text(userCtx.name).attr({href : "/_utils/document.html?"+encodeURIComponent(userCtx.info.user_db)+"/org.couchdb.user%3A"+userCtx.name});
if (userCtx.roles.indexOf("_admin") != -1) {
$("#userCtx .loggedinadmin").show();
} else {