Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 81502 invoked from network); 2 Feb 2009 14:16:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2009 14:16:23 -0000 Received: (qmail 9510 invoked by uid 500); 2 Feb 2009 14:16:23 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 9481 invoked by uid 500); 2 Feb 2009 14:16:22 -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 9470 invoked by uid 99); 2 Feb 2009 14:16:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 06:16:22 -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 14:16:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D61C5234C48D for ; Mon, 2 Feb 2009 06:15:59 -0800 (PST) Message-ID: <897214451.1233584159861.JavaMail.jira@brutus> Date: Mon, 2 Feb 2009 06:15:59 -0800 (PST) From: "Benoit Chesneau (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-233) add the current line number of displayed row in lists In-Reply-To: <1382674297.1233581639781.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benoit Chesneau updated COUCHDB-233: ------------------------------------ Attachment: couchdb-lists-linenumber.diff rename nbrow -> row_number as per suggestion of jan___ on irc. removed local_dev change from the diff. > 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, 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.