add a message when there's no tracks yet
authorRobert Kaiser <kairo@kairo.at>
Sun, 22 Oct 2017 23:26:25 +0000 (01:26 +0200)
committerRobert Kaiser <kairo@kairo.at>
Sun, 22 Oct 2017 23:26:25 +0000 (01:26 +0200)
js/library.js
manifest.appcache

index 336238c42c532528d428b15a7d1ba7a97721cb58..9cb6d24a2ba9c4914ec3d9fc7f9b480f71f2b349 100644 (file)
@@ -21,6 +21,11 @@ function showLibrary() {
         litem.textContent = "Error: " + aResult;
         tlist.appendChild(litem);
       }
+      else if (!aResult.length) {
+        var litem = document.createElement("li");
+        litem.textContent = "No tracks uploaded yet.";
+        tlist.appendChild(litem);
+      }
       else {
         for (var i = 0; i < aResult.length; i++) {
           var litem = document.createElement("li");
index 244ce5c86bc266bf11f357fe447ac6d1e0a7a1bd..67b8bc195f8b1b3e55ef01bf742b164e8abac139 100644 (file)
@@ -1,6 +1,6 @@
 CACHE MANIFEST
 
-# 2017-10-22
+# 2017-10-23
 index.html
 login.html
 manifest.webapp