Commit a4626dec authored by Simon Daron's avatar Simon Daron
Browse files

Hide if empty

parent 63a345a9
......@@ -46,7 +46,13 @@
this.playlistContainer.find('audio').each(function(){
thePlaylist.playlist.push(thePlaylist.jsonifyAudio($(this)));
});
if(this.playlist.lenght >= 1){this.playlistContainer.show();}
if(this.playlist.length >= 1){
this.playlistContainer.show();
this.controls.show();
}else{
this.playlistContainer.hide();
this.controls.hide();
}
this.savePlaylist();
this.debugContainer.text(
JSON.stringify(this.playlist, null, '\t')
......
Supports Markdown
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