clean the collection view after rescanning

This commit is contained in:
Robin Appelman 2012-04-15 15:18:45 +02:00
parent cf3bb08dfb
commit b3ae2208b1
1 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,11 @@ Collection={
}
if(!Collection.loading){
Collection.loading=true;
Collection.artists=[];
Collection.albums=[];
Collection.songs=[];
Collection.artistsById={};
Collection.albumsById={};
$.ajax({
url: OC.linkTo('media','ajax/api.php')+'?action=get_collection',
dataType: 'json',