diff options
-rw-r--r-- | share/www/script/browse.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/www/script/browse.js b/share/www/script/browse.js index 332b73d8..b08cbae6 100644 --- a/share/www/script/browse.js +++ b/share/www/script/browse.js @@ -40,6 +40,10 @@ function CouchIndexPage() { $(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) + "'>" + |