summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-05-26 00:53:43 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-05-26 00:53:43 +0000
commit86f01e87950678949123c8e49bcc225d30d3ba80 (patch)
tree1757d7d983eaec89cd990b9d05ee0159f00a7010
parent7f0c6ac8e299629322f62ba5a9f7627c71e59f4b (diff)
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
-rw-r--r--share/www/script/jquery.couch.js2
1 files changed, 1 insertions, 1 deletions
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)
}