You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2010/06/25 19:20:25 UTC

svn commit: r958042 - /couchdb/branches/0.11.x/share/www/script/jquery.couch.js

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)
             }