Commit 39d2ca9c authored by Mike Sheldon's avatar Mike Sheldon

Merge commit 'refs/merge-requests/14' of git://gitorious.org/foocorp/gnu-fm

parents 028a0330 f83a3793
......@@ -253,11 +253,16 @@ function playSong(song) {
* @param int song The song number in the playlist that should be loaded
*/
function loadSong(song) {
var url = playlist[song]["url"];
artist = playlist[song]["artist"];
album = playlist[song]["album"];
track = playlist[song]["track"];
trackpage = playlist[song]["trackpage"];
try {
var url = playlist[song]["url"];
artist = playlist[song]["artist"];
album = playlist[song]["album"];
track = playlist[song]["track"];
trackpage = playlist[song]["trackpage"];
} catch (e) {
// Handle a possible TypeError when song < 0 or song >= playlist.length
return;
}
// Highlight current song in the playlist
$("#song-" + current_song).css({fontWeight : "normal"});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment