From d08d33087cf9d506cbe43bd91019d0c334b91667 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Mon, 23 Oct 2017 01:26:25 +0200 Subject: [PATCH] add a message when there's no tracks yet --- js/library.js | 5 +++++ manifest.appcache | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/js/library.js b/js/library.js index 336238c..9cb6d24 100644 --- a/js/library.js +++ b/js/library.js @@ -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"); diff --git a/manifest.appcache b/manifest.appcache index 244ce5c..67b8bc1 100644 --- a/manifest.appcache +++ b/manifest.appcache @@ -1,6 +1,6 @@ CACHE MANIFEST -# 2017-10-22 +# 2017-10-23 index.html login.html manifest.webapp -- 2.43.0