summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2009-07-22 22:22:28 +0000
committerChristopher Lenz <cmlenz@apache.org>2009-07-22 22:22:28 +0000
commit72edcd3eb9152d0dbf1bd7d8eac5f42cff95ed44 (patch)
tree5f551bbbdd7c0ae3997b4ba034484c8c9717d378 /share
parentff513dbb4c027ca85f67f4b9f9039efec2ea3dfe (diff)
Fix off-by-one error in Futon view paging. Thanks to Jason Davies for the patch. Closes COUCHDB-428.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796895 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r--share/www/script/futon.browse.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js
index e6875948..6c7c6719 100644
--- a/share/www/script/futon.browse.js
+++ b/share/www/script/futon.browse.js
@@ -471,7 +471,7 @@
// reduce views
options.limit = per_page + 1;
} else {
- per_page = options.limit;
+ per_page = options.limit - 1;
}
if ($("#documents thead th.key").is(".desc")) {
if (typeof options.descending == 'undefined') options.descending = true;