From: Robert Kaiser Date: Sun, 22 Oct 2017 23:26:25 +0000 (+0200) Subject: add a message when there's no tracks yet X-Git-Tag: production~26 X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=commitdiff_plain;h=d08d33087cf9d506cbe43bd91019d0c334b91667 add a message when there's no tracks yet --- 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