From 72edcd3eb9152d0dbf1bd7d8eac5f42cff95ed44 Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Wed, 22 Jul 2009 22:22:28 +0000 Subject: 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 --- share/www/script/futon.browse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3