couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1035229 - /couchdb/trunk/share/www/document.html
Date Mon, 15 Nov 2010 11:37:02 GMT
Author: jan
Date: Mon Nov 15 11:37:02 2010
New Revision: 1035229

URL: http://svn.apache.org/viewvc?rev=1035229&view=rev
Log:
Correct display for docs with %2f in their ID. Closes COUCHDB-948.

Modified:
    couchdb/trunk/share/www/document.html

Modified: couchdb/trunk/share/www/document.html
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/document.html?rev=1035229&r1=1035228&r2=1035229&view=diff
==============================================================================
--- couchdb/trunk/share/www/document.html [utf-8] (original)
+++ couchdb/trunk/share/www/document.html [utf-8] Mon Nov 15 11:37:02 2010
@@ -44,7 +44,7 @@ specific language governing permissions 
       $(function() {
         $("h1 a.dbname").text(encodeURIComponent(page.dbName))
           .attr("href", "database.html?" + encodeURIComponent(page.db.name));
-        $("h1 strong").text(encodeURIComponent(page.docId));
+        $("h1 strong").text(encodeURIComponent(page.docId).replace(/%2[Ff]/, "/"));
         $("h1 a.raw").attr("href", "/" + encodeURIComponent(page.db.name) +
           "/" + encodeURIComponent(page.docId));
         page.updateFieldListing();



Mime
View raw message