You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jc...@apache.org on 2010/06/25 07:41:13 UTC
svn commit: r957808 - /couchdb/trunk/share/www/script/futon.js
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);
});
}