couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r957619 - /couchdb/trunk/share/www/script/futon.js
Date Thu, 24 Jun 2010 16:47:18 GMT
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 {



Mime
View raw message