summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-06-24 16:47:18 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-06-24 16:47:18 +0000
commit9a8c496a787bdef6eb0af2ded243d2bb209503d5 (patch)
treed27fa93004471c2192a0cf837a4419c60b74ece0
parent2f502eb36358dbdc3816a28000b3dd4036ed62ab (diff)
add $.couch.urlPrefix to link to users db. closes COUCHDB-742
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957619 13f79535-47bb-0310-9956-ffa450edef68
-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 2c29a5eb..2a4ad8ad 100644
--- a/share/www/script/futon.js
+++ b/share/www/script/futon.js
@@ -140,7 +140,7 @@ function $$(node) {
var userCtx = r.userCtx;
$$("#userCtx").userCtx = userCtx;
if (userCtx.name) {
- $("#userCtx .name").text(userCtx.name).attr({href : "/_utils/document.html?"+encodeURIComponent(r.info.authentication_db)+"/org.couchdb.user%3A"+encodeURIComponent(userCtx.name)});
+ $("#userCtx .name").text(userCtx.name).attr({href : $.couch.urlPrefix + "/_utils/document.html?"+encodeURIComponent(r.info.authentication_db)+"/org.couchdb.user%3A"+encodeURIComponent(userCtx.name)});
if (userCtx.roles.indexOf("_admin") != -1) {
$("#userCtx .loggedinadmin").show();
} else {