Author: jchris
Date: Thu Jun 24 16:47:18 2010
New Revision: 957619

URL: http://svn.apache.org/viewvc?rev=957619&view=rev
Log:
add $.couch.urlPrefix to link to users db. closes COUCHDB-742

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=957619&r1=957618&r2=957619&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/futon.js (original)
+++ couchdb/trunk/share/www/script/futon.js Thu Jun 24 16:47:18 2010
@@ -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 {


Reply via email to