summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/player.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/static/player.js b/static/player.js
index ab583ee..90acf0b 100644
--- a/static/player.js
+++ b/static/player.js
@@ -17,7 +17,6 @@ function MusicListing(type, path, name, cached) {
this.path = path;
this.name = name ? name : path.split('/').pop();
this.a = document.createElement('a');
- this.a.tag = path;
this.a.ml = this;
this.play = function() {
@@ -133,10 +132,10 @@ function add_directory() {
var source = null;
function get_a(path) {
- var as = document.getElementsByTagName('a');
+ var as = document.getElementById('song-links').getElementsByTagName('a');
for(var i = 0; i < as.length; i++) {
var a = as[i];
- if(a.tag == path)
+ if(a.ml.path == path)
return a;
}
}