This commit is contained in:
2025-10-09 00:22:54 +03:00
parent 7e0e330ef6
commit b8b39c945d
28 changed files with 2186 additions and 452 deletions
+15
View File
@@ -106,3 +106,18 @@ $('.remove-from-watchlist').on('click', function(e){
});
return false;
});
$('.list-action').on('click', function(e){
e.preventDefault();
let url = '/lists/' + $(this).data('list') + '/' + $(this).data('id') + '/' + $(this).data('type');
var self = this
$.ajax({
url: url,
method: 'GET',
success: function(data){
// Show a success message
alert('Movie ' + (data.added ? 'added to' : 'removed from') + ' list');
}
});
return false;
});