Hide dups when refreshing playlists
This commit is contained in:
parent
3d83406fff
commit
773a501e40
1 changed files with 4 additions and 3 deletions
|
@ -68,8 +68,8 @@ var errorSource = document.getElementById('error-template').innerHTML,
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById('get-playlists').addEventListener('click', function () {
|
document.getElementById('get-playlists').addEventListener('click', function () {
|
||||||
var currentElement = $(this);
|
var button = $(this);
|
||||||
currentElement.addClass('loading');
|
button.addClass('loading');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/get_playlists',
|
url: '/get_playlists',
|
||||||
data: {
|
data: {
|
||||||
|
@ -84,7 +84,8 @@ var errorSource = document.getElementById('error-template').innerHTML,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
currentElement.removeClass('loading');
|
button.removeClass('loading');
|
||||||
|
$('#dups').hide();
|
||||||
|
|
||||||
playlistsPlaceholder.innerHTML = playlistsTemplate({
|
playlistsPlaceholder.innerHTML = playlistsTemplate({
|
||||||
playlists: pl
|
playlists: pl
|
||||||
|
|
Loading…
Reference in a new issue