1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
Oinktube/plugin/Gallery/script.js
Daniel fa6be4f09e https://github.com/WWBN/AVideo/issues/6372
I will let the admin select what channels he wants to put on the first page.
then I it will show the channels videos sorted by date DESC
2022-03-10 19:45:50 -03:00

17 lines
No EOL
611 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');
}
}
}
});
}