couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r898650 - /couchdb/trunk/share/www/script/futon.js
Date Wed, 13 Jan 2010 05:12:18 GMT
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 {



Mime
View raw message