Permalink
Browse files

fix the Futon issue where you have to cancel the admin dialog box aft…

…er 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
  • Loading branch information...
1 parent 6d88c8c commit cc40f6235c58cc2628a61e5e3d8b98a6b401a238 @jchris jchris committed Jun 25, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 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);
});
}

0 comments on commit cc40f62

Please sign in to comment.