mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00

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