fix bug in saving currently played song

This commit is contained in:
Robin Appelman 2011-08-01 01:17:54 +02:00
parent 76a2f5b547
commit e1596cc65a
1 changed files with 2 additions and 2 deletions

View File

@ -33,13 +33,13 @@ var PlayList={
PlayList.player.jPlayer("setMedia", PlayList.items[PlayList.current]);
PlayList.items[index].playcount++;
PlayList.player.jPlayer("play");
localStorage.setItem('oc_playlist_current',index);
localStorage.setItem('oc_playlist_playing','true');
if (typeof Collection !== 'undefined') {
Collection.registerPlay();
}
}
}else{
localStorage.setItem('oc_playlist_current',PlayList.current);
localStorage.setItem('oc_playlist_playing','true');
PlayList.init(PlayList.items[index].type,PlayList.play);
}
}