1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00
Oinktube/plugin/Gallery/script.js
2022-03-17 11:43:59 -03:00

17 lines
No EOL
627 B
JavaScript

function channelToGallery(users_id, add) {
$.ajax({
url: webSiteRootURL + 'plugin/Gallery/channelToGallery.json.php',
method: 'POST',
data: {'users_id': users_id, 'add': add},
success: function (response) {
avideoResponse(response);
if(!response.error){
if(response.add){
$('.ChannelToGallery'+response.users_id).addClass('isChannelToGallery');
}else{
$('.ChannelToGallery'+response.users_id).removeClass('isChannelToGallery');
}
}
}
});
}