fix playing songs from search results

This commit is contained in:
Robin Appelman 2011-09-29 23:54:33 +02:00
parent d59c48217d
commit 35d490f8e9
2 changed files with 4 additions and 4 deletions

View File

@ -274,7 +274,7 @@ Collection={
},
findArtist:function(name){
for(var i=0;i<Collection.artists.length;i++){
if(Collection.artists[i].artist_name==name){
if(Collection.artists[i].name==name){
return Collection.artists[i];
}
}
@ -283,7 +283,7 @@ Collection={
var artist=Collection.findArtist(artistName);
if(artist){
for(var i=0;i<artist.albums.length;i++){
if(artist.albums[i].album_name==albumName){
if(artist.albums[i].name==albumName){
return artist.albums[i];
}
}
@ -293,7 +293,7 @@ Collection={
var album=Collection.findAlbum(artistName,albumName);
if(album){
for(var i=0;i<album.songs.length;i++){
if(album.songs[i].song_name==songName){
if(album.songs[i].name==songName){
return album.songs[i];
}
}

View File

@ -23,8 +23,8 @@ $(document).ready(function(){
PlayList.render();
});
row.find('div.name').append(button);
button.tipsy({gravity:'n', fade:true, delayIn: 400, live:true});
}
$('.add').tipsy({gravity:'n', fade:true, delayIn: 400, live:true});
Collection.display();
});