From 8d20c8433f2a0ef44dab2ef0aec5a8c95e8258ef Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Tue, 13 May 2008 10:09:50 +0000 Subject: Stop spinner if no databases are to be listed git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@655793 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/browse.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'share/www') 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("" + "" + -- cgit v1.2.3