projects
/
lantea.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't actually contact remote server when track panel isn't opened (initialize to...
[lantea.git]
/
js
/
library.js
diff --git
a/js/library.js
b/js/library.js
index 336238c42c532528d428b15a7d1ba7a97721cb58..9cb6d24a2ba9c4914ec3d9fc7f9b480f71f2b349 100644
(file)
--- a/
js/library.js
+++ b/
js/library.js
@@
-21,6
+21,11
@@
function showLibrary() {
litem.textContent = "Error: " + aResult;
tlist.appendChild(litem);
}
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");
else {
for (var i = 0; i < aResult.length; i++) {
var litem = document.createElement("li");