From couchdb-commits-return-229-apmail-incubator-couchdb-commits-archive=incubator.apache.org@incubator.apache.org Mon Apr 14 23:00:15 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-commits-archive@locus.apache.org Received: (qmail 50029 invoked from network); 14 Apr 2008 23:00:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Apr 2008 23:00:15 -0000 Received: (qmail 15812 invoked by uid 500); 14 Apr 2008 23:00:15 -0000 Delivered-To: apmail-incubator-couchdb-commits-archive@incubator.apache.org Received: (qmail 15792 invoked by uid 500); 14 Apr 2008 23:00:15 -0000 Mailing-List: contact couchdb-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-commits@incubator.apache.org Received: (qmail 15783 invoked by uid 99); 14 Apr 2008 23:00:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2008 16:00:15 -0700 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.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2008 22:59:31 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 893121A9832; Mon, 14 Apr 2008 15:59:51 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r648044 - in /incubator/couchdb/branches/futon-async/share/www: couch_tests.html script/browse.js style/layout.css Date: Mon, 14 Apr 2008 22:59:50 -0000 To: couchdb-commits@incubator.apache.org From: cmlenz@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080414225951.893121A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: cmlenz Date: Mon Apr 14 15:59:45 2008 New Revision: 648044 URL: http://svn.apache.org/viewvc?rev=648044&view=rev Log: futon-async branch: * Selection status of the builtin views is now working. * Fixed error when trying to edit the value of a new field before the field name has been committed. Values can now only be edited for fields where the name has been set. * Added note about blocking behavior to the top of the test suite. Modified: incubator/couchdb/branches/futon-async/share/www/couch_tests.html incubator/couchdb/branches/futon-async/share/www/script/browse.js incubator/couchdb/branches/futon-async/share/www/style/layout.css Modified: incubator/couchdb/branches/futon-async/share/www/couch_tests.html URL: http://svn.apache.org/viewvc/incubator/couchdb/branches/futon-async/share/www/couch_tests.html?rev=648044&r1=648043&r2=648044&view=diff ============================================================================== --- incubator/couchdb/branches/futon-async/share/www/couch_tests.html [utf-8] (original) +++ incubator/couchdb/branches/futon-async/share/www/couch_tests.html [utf-8] Mon Apr 14 15:59:45 2008 @@ -48,6 +48,12 @@
  • +

    + Note: Each of the tests will block the browser. If the + connection to your CouchDB server is slow, running the tests will take + some time, and you'll not be able to do much with your browser while + a test is being executed. +

    Modified: incubator/couchdb/branches/futon-async/share/www/script/browse.js URL: http://svn.apache.org/viewvc/incubator/couchdb/branches/futon-async/share/www/script/browse.js?rev=648044&r1=648043&r2=648044&view=diff ============================================================================== --- incubator/couchdb/branches/futon-async/share/www/script/browse.js [utf-8] (original) +++ incubator/couchdb/branches/futon-async/share/www/script/browse.js [utf-8] Mon Apr 14 15:59:45 2008 @@ -187,6 +187,13 @@ } } }); + if (!viewName.match(/^_design\//)) { + $.each(["_all_docs", "_design_docs", "_temp_view"], function(idx, name) { + if (viewName == name) { + select[0].options[idx].selected = true; + } + }); + } } this.revertViewChanges = function(callback) { @@ -634,7 +641,7 @@ } function _editValue(doc, cell, fieldName) { - if (fieldName == "_id" || fieldName == "_rev") return; + if (!fieldName || fieldName == "_id" || fieldName == "_rev") return; var td = $(cell); var value = doc[fieldName]; var needsTextarea = $("dl", td).length > 0 || $("code", td).text().length > 60; Modified: incubator/couchdb/branches/futon-async/share/www/style/layout.css URL: http://svn.apache.org/viewvc/incubator/couchdb/branches/futon-async/share/www/style/layout.css?rev=648044&r1=648043&r2=648044&view=diff ============================================================================== --- incubator/couchdb/branches/futon-async/share/www/style/layout.css (original) +++ incubator/couchdb/branches/futon-async/share/www/style/layout.css Mon Apr 14 15:59:45 2008 @@ -52,6 +52,8 @@ fieldset input, fieldset select { font-size: 95%; } fieldset p { margin: .4em; } +p.help { color: #999; font-size: 90%; margin: 0 2em 1em; } + /* Tabular listings */ table.listing { border-collapse: separate; border-spacing: 0; @@ -216,7 +218,7 @@ -webkit-border-bottom-left-radius: 7px; -webkit-border-bottom-right-radius: 7px; } -#dialog p.help { color: #bbb; margin: 0 0 1em; } +#dialog p.help { color: #bbb; font-size: 95%; margin: 0 0 1em; } #dialog fieldset table { margin-top: 1em; } #dialog fieldset th, #dialog fieldset td { padding: .5em; vertical-align: top;
    Tests