|
|
|
@ -142,6 +142,7 @@ var PlayList={ |
|
|
|
|
remove:function(index){ |
|
|
|
|
PlayList.items.splice(index,1); |
|
|
|
|
PlayList.render(); |
|
|
|
|
PlayList.save(); |
|
|
|
|
}, |
|
|
|
|
render:function(){}, |
|
|
|
|
playing:function(){ |
|
|
|
@ -160,6 +161,7 @@ var PlayList={ |
|
|
|
|
if(typeof localStorage !== 'undefined'){ |
|
|
|
|
if(localStorage.hasOwnProperty(oc_current_user+'oc_playlist_items')){ |
|
|
|
|
PlayList.items=JSON.parse(localStorage.getItem(oc_current_user+'oc_playlist_items')); |
|
|
|
|
if(PlayList.items.length>0){ |
|
|
|
|
PlayList.current=parseInt(localStorage.getItem(oc_current_user+'oc_playlist_current')); |
|
|
|
|
var time=parseInt(localStorage.getItem(oc_current_user+'oc_playlist_time')); |
|
|
|
|
if(localStorage.hasOwnProperty(oc_current_user+'oc_playlist_volume')){ |
|
|
|
@ -182,3 +184,4 @@ var PlayList={ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|