Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 55172 invoked from network); 2 Feb 2009 13:34:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2009 13:34:22 -0000 Received: (qmail 53508 invoked by uid 500); 2 Feb 2009 13:34:20 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 53468 invoked by uid 500); 2 Feb 2009 13:34:20 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 53457 invoked by uid 99); 2 Feb 2009 13:34:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 05:34:20 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 13:34:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BF128234C4CA for ; Mon, 2 Feb 2009 05:33:59 -0800 (PST) Message-ID: <1382674297.1233581639781.JavaMail.jira@brutus> Date: Mon, 2 Feb 2009 05:33:59 -0800 (PST) From: "Benoit Chesneau (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-233) add the current line number of displayed row in lists MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org add the current line number of displayed row in lists ------------------------------------------------------- Key: COUCHDB-233 URL: https://issues.apache.org/jira/browse/COUCHDB-233 Project: CouchDB Issue Type: New Feature Components: JavaScript View Server Affects Versions: 0.9 Reporter: Benoit Chesneau Fix For: 0.9 Attachments: couchdb-lists-linenumber.diff This patch add the current line number of displayed row in lists. lists functions have a new row number arguments that could be used. In head row number is null, in tail it's null if there isn't any rows or number of last row. This patch will allow us to make pagination in lists without use of ajax. Lists function are with this patch defined like this : function(head, row, req, nbrow) { } where nbrow is the row line numbere. This patch only affect view server by modifying main.js and tests to "lists" test that test presence of line number and if line number is on the right position. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.