couchdb-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=958042&view=rev
Log:
use a smaller rev token for attachment versions, thanks for the suggestion Damien

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

Modified: couchdb/branches/0.11.x/share/www/script/jquery.couch.js
URL: http://svn.apache.org/viewvc/couchdb/branches/0.11.x/share/www/script/jquery.couch.js?rev=958042&r1=958041&r2=958042&view=diff
==============================================================================
--- couchdb/branches/0.11.x/share/www/script/jquery.couch.js [utf-8] (original)
+++ couchdb/branches/0.11.x/share/www/script/jquery.couch.js [utf-8] Fri Jun 25 17:20:25 2010
@@ -164,7 +164,7 @@
             return false;
           } else {
             doc._attachments = doc._attachments || {};
-            doc._attachments["rev-"+doc._rev] = {
+            doc._attachments["rev-"+doc._rev.split("-")[0]] = {
               content_type :"application/json",
               data : Base64.encode(rawDocs[doc._id].raw)
             }



Mime
View raw message