couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r948282 - /couchdb/trunk/share/www/script/jquery.couch.js
Date Wed, 26 May 2010 00:53:43 GMT
Author: jchris
Date: Wed May 26 00:53:43 2010
New Revision: 948282

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

Modified:
    couchdb/trunk/share/www/script/jquery.couch.js

Modified: couchdb/trunk/share/www/script/jquery.couch.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/jquery.couch.js?rev=948282&r1=948281&r2=948282&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/jquery.couch.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/jquery.couch.js [utf-8] Wed May 26 00:53:43 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