couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r655793 - /incubator/couchdb/trunk/share/www/script/browse.js
Date Tue, 13 May 2008 10:09:50 GMT
Author: jan
Date: Tue May 13 03:09:50 2008
New Revision: 655793

URL: http://svn.apache.org/viewvc?rev=655793&view=rev
Log:
Stop spinner if no databases are to be listed

Modified:
    incubator/couchdb/trunk/share/www/script/browse.js

Modified: incubator/couchdb/trunk/share/www/script/browse.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/browse.js?rev=655793&r1=655792&r2=655793&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/script/browse.js [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/script/browse.js [utf-8] Tue May 13 03:09:50 2008
@@ -40,6 +40,10 @@
     $(document.body).addClass("loading");
     $.couch.allDbs({
       success: function(dbs) {
+        if(dbs.length == 0) {
+          $(document.body).removeClass("loading");
+        }
+        
         $.each(dbs, function(idx, dbName) {
           $("#databases tbody.content").append("<tr>" + 
             "<th><a href='database.html?" + encodeURIComponent(dbName) + "'>"
+



Mime
View raw message