couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r957808 - /couchdb/trunk/share/www/script/futon.js
Date Fri, 25 Jun 2010 05:41:13 GMT
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);
                 });            
             }



Mime
View raw message