diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-08-01 01:17:54 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-08-01 01:17:54 +0200 |
commit | e1596cc65a93d86f81aac025a53144c8513be217 (patch) | |
tree | 776334b55dffd939957bc9e88d6a3a060d2c50ca /apps | |
parent | 76a2f5b5476c87d330cb81a25793461554af416a (diff) | |
download | nextcloud-server-e1596cc65a93d86f81aac025a53144c8513be217.tar.gz nextcloud-server-e1596cc65a93d86f81aac025a53144c8513be217.zip |
fix bug in saving currently played song
Diffstat (limited to 'apps')
-rw-r--r-- | apps/media/js/player.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/media/js/player.js b/apps/media/js/player.js index d79d6135df2..5f48878563f 100644 --- a/apps/media/js/player.js +++ b/apps/media/js/player.js @@ -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); } } |