Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 87508 invoked from network); 25 Jun 2010 05:42:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Jun 2010 05:42:12 -0000 Received: (qmail 93684 invoked by uid 500); 25 Jun 2010 05:42:11 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 93550 invoked by uid 500); 25 Jun 2010 05:42:09 -0000 Mailing-List: contact commits-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 commits@couchdb.apache.org Received: (qmail 93543 invoked by uid 99); 25 Jun 2010 05:42:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jun 2010 05:42:08 +0000 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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jun 2010 05:42:06 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id CC90223889E2; Fri, 25 Jun 2010 05:41:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r957808 - /couchdb/trunk/share/www/script/futon.js Date: Fri, 25 Jun 2010 05:41:13 -0000 To: commits@couchdb.apache.org From: jchris@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100625054113.CC90223889E2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jchris Date: Fri Jun 25 05:41:13 2010 New Revision: 957808 URL: http://svn.apache.org/viewvc?rev=957808&view=rev Log: fix the Futon issue where you have to cancel the admin dialog box after putting back admins that were removed to run the tests Modified: couchdb/trunk/share/www/script/futon.js Modified: couchdb/trunk/share/www/script/futon.js URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/futon.js?rev=957808&r1=957807&r2=957808&view=diff ============================================================================== --- couchdb/trunk/share/www/script/futon.js (original) +++ couchdb/trunk/share/www/script/futon.js Fri Jun 25 05:41:13 2010 @@ -87,7 +87,11 @@ function $$(node) { return; } doSignup(data.name, null, function(errors) { - callback(errors); + if (errors && errors.name && errors.name.indexOf && errors.name.indexOf("taken") == -1) { + callback(errors); + } else { + callback(); + } }, false); }); }