progress
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user