You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jc...@apache.org on 2010/01/13 06:12:18 UTC
svn commit: r898650 - /couchdb/trunk/share/www/script/futon.js
Author: jchris
Date: Wed Jan 13 05:12:18 2010
New Revision: 898650
URL: http://svn.apache.org/viewvc?rev=898650&view=rev
Log:
use config info for users db
Modified:
couchdb/trunk/share/www/script/futon.js
Modified: couchdb/trunk/share/www/script/futon.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/futon.js?rev=898650&r1=898649&r2=898650&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/futon.js (original)
+++ couchdb/trunk/share/www/script/futon.js Wed Jan 13 05:12:18 2010
@@ -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 {