Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 28093 invoked from network); 9 Jan 2009 23:10:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2009 23:10:21 -0000 Received: (qmail 50755 invoked by uid 500); 9 Jan 2009 23:10:20 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 50718 invoked by uid 500); 9 Jan 2009 23:10: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 50702 invoked by uid 99); 9 Jan 2009 23:10:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2009 15:10: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; Fri, 09 Jan 2009 23:10:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C5C3A234C485 for ; Fri, 9 Jan 2009 15:09:59 -0800 (PST) Message-ID: <1751253016.1231542599795.JavaMail.jira@brutus> Date: Fri, 9 Jan 2009 15:09:59 -0800 (PST) From: "Brian Palmer (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-202) [PATCH] Support other languages for views in Futon In-Reply-To: <815752896.1231542359908.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-202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662554#action_12662554 ] Brian Palmer commented on COUCHDB-202: -------------------------------------- I forgot to mention one small quirk, the most logical place for the language select dropdown is in the bottom bar of the #viewcode element. However there's a problem with safari and the resizable drag handle on that bar, preventing the select from being clicked. So on safari I move it down below, which is ugly. If anybody knows of a fix that'd be awesome. > [PATCH] Support other languages for views in Futon > -------------------------------------------------- > > Key: COUCHDB-202 > URL: https://issues.apache.org/jira/browse/COUCHDB-202 > Project: CouchDB > Issue Type: Improvement > Components: Administration Console > Reporter: Brian Palmer > Attachments: Futon_languages_support.patch > > > Attached is a small patch to generalize Futon to support any language defined in the .ini file. If the language is recognized, Futon will use the correct "stub" map function in the edit textarea. Currently I've added stub map methods for javascript and ruby, more could be added. > Languages are checked on save and handled conservatively. So once a view has been created, its language cannot be changed. And when first saving a view, the target document's language is checked and an error is returned if the languages don't match. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.