only play the music once

This commit is contained in:
Robin Appelman 2011-09-29 00:48:45 +02:00
parent 0d40617c07
commit fcc6d61fe1

View file

@ -170,9 +170,7 @@ var PlayList={
localStorage.setItem(oc_current_user+'oc_playlist_volume',volume);
}
}
if(PlayList.active){
localStorage.setItem(oc_current_user+'oc_playlist_active','false');
}
localStorage.setItem(oc_current_user+'oc_playlist_active','true');
}
},
load:function(){
@ -209,6 +207,9 @@ var PlayList={
$(document).ready(function(){
$(window).bind('beforeunload', function (){
PlayList.save();
if(PlayList.active){
localStorage.setItem(oc_current_user+'oc_playlist_active','false');
}
});
$('jp-previous').tipsy({gravity:'n', fade:true, live:true});