clean the collection view after rescanning
This commit is contained in:
parent
cf3bb08dfb
commit
b3ae2208b1
|
@ -15,6 +15,11 @@ Collection={
|
||||||
}
|
}
|
||||||
if(!Collection.loading){
|
if(!Collection.loading){
|
||||||
Collection.loading=true;
|
Collection.loading=true;
|
||||||
|
Collection.artists=[];
|
||||||
|
Collection.albums=[];
|
||||||
|
Collection.songs=[];
|
||||||
|
Collection.artistsById={};
|
||||||
|
Collection.albumsById={};
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: OC.linkTo('media','ajax/api.php')+'?action=get_collection',
|
url: OC.linkTo('media','ajax/api.php')+'?action=get_collection',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
|
|
Loading…
Reference in New Issue