diff options
author | Jan Lehnardt <jan@apache.org> | 2008-05-13 10:09:50 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2008-05-13 10:09:50 +0000 |
commit | 8d20c8433f2a0ef44dab2ef0aec5a8c95e8258ef (patch) | |
tree | dbcb38ee1db9edb9ac3c4bb8213d8338ae9e5dc8 /share | |
parent | 4b8d462f301472d47278a9cf59e0913d03185271 (diff) |
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
Diffstat (limited to 'share')
-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) + "'>" + |