From cc40f6235c58cc2628a61e5e3d8b98a6b401a238 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Fri, 25 Jun 2010 05:41:13 +0000 Subject: fix the Futon issue where you have to cancel the admin dialog box after putting back admins that were removed to run the tests git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957808 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/futon.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'share') diff --git a/share/www/script/futon.js b/share/www/script/futon.js index 2a4ad8ad..b15a5eec 100644 --- a/share/www/script/futon.js +++ b/share/www/script/futon.js @@ -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); }); } -- cgit v1.2.3