From 86f01e87950678949123c8e49bcc225d30d3ba80 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Wed, 26 May 2010 00:53:43 +0000 Subject: use a smaller rev token for attachment versions, thanks for the suggestion Damien git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@948282 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/jquery.couch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') diff --git a/share/www/script/jquery.couch.js b/share/www/script/jquery.couch.js index 99ad1842..d3d73671 100644 --- a/share/www/script/jquery.couch.js +++ b/share/www/script/jquery.couch.js @@ -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) } -- cgit v1.2.3