summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2008-05-13 10:09:50 +0000
committerJan Lehnardt <jan@apache.org>2008-05-13 10:09:50 +0000
commit8d20c8433f2a0ef44dab2ef0aec5a8c95e8258ef (patch)
treedbcb38ee1db9edb9ac3c4bb8213d8338ae9e5dc8
parent4b8d462f301472d47278a9cf59e0913d03185271 (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
-rw-r--r--share/www/script/browse.js4
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) + "'>" +