couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r957972 - /couchdb/branches/0.11.x/share/www/script/futon.js
Date Fri, 25 Jun 2010 14:20:14 GMT
Author: jan
Date: Fri Jun 25 14:20:13 2010
New Revision: 957972

URL: http://svn.apache.org/viewvc?rev=957972&view=rev
Log:
Merge r957619 from trunk:

add $.couch.urlPrefix to link to users db. closes COUCHDB-742

Modified:
    couchdb/branches/0.11.x/share/www/script/futon.js

Modified: couchdb/branches/0.11.x/share/www/script/futon.js
URL: http://svn.apache.org/viewvc/couchdb/branches/0.11.x/share/www/script/futon.js?rev=957972&r1=957971&r2=957972&view=diff
==============================================================================
--- couchdb/branches/0.11.x/share/www/script/futon.js (original)
+++ couchdb/branches/0.11.x/share/www/script/futon.js Fri Jun 25 14:20:13 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