This commit is contained in:
2025-02-02 14:23:11 +02:00
parent 83b90aa7a0
commit 3c746656c7
12 changed files with 159 additions and 6 deletions
+17
View File
@@ -60,3 +60,20 @@ $('.like-btn').on('click', function (e) {
});
return false;
});
$('.remove-from-watchlist').on('click', function(e){
e.preventDefault();
let url = '/lists/watched/' + $(this).data('id') + '/' + $(this).data('type');
var self = this
$.ajax({
url: url,
method: 'GET',
success: function(data){
if(!data.added) {
$(self).closest('.large-list-item').remove();
}
}
});
return false;
});