couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r796895 - /couchdb/trunk/share/www/script/futon.browse.js
Date Wed, 22 Jul 2009 22:22:28 GMT
Author: cmlenz
Date: Wed Jul 22 22:22:28 2009
New Revision: 796895

URL: http://svn.apache.org/viewvc?rev=796895&view=rev
Log:
Fix off-by-one error in Futon view paging. Thanks to Jason Davies for the patch. Closes COUCHDB-428.

Modified:
    couchdb/trunk/share/www/script/futon.browse.js

Modified: couchdb/trunk/share/www/script/futon.browse.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/futon.browse.js?rev=796895&r1=796894&r2=796895&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/futon.browse.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/futon.browse.js [utf-8] Wed Jul 22 22:22:28 2009
@@ -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;



Mime
View raw message