summaryrefslogtreecommitdiff
path: root/share/www/script
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-06-25 05:41:13 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-06-25 05:41:13 +0000
commitcc40f6235c58cc2628a61e5e3d8b98a6b401a238 (patch)
treec1a309faa2d9d3d975ec3bfee69ee0dea742bba4 /share/www/script
parent6d88c8c6d66772a1dac1d351405eff9c513d263e (diff)
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
Diffstat (limited to 'share/www/script')
-rw-r--r--share/www/script/futon.js6
1 files changed, 5 insertions, 1 deletions
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);
});
}