1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00

NetFlix Style

This commit is contained in:
daniel 2017-12-08 13:19:37 -03:00
parent 9df9d8e3d2
commit c1f03c7d1d
2 changed files with 8 additions and 4 deletions

View file

@ -91,7 +91,11 @@ $(function () {
});
video = $(this).attr('video');
cat = $(this).attr('cat');
$('.playBtn').attr('href', webSiteRootURL+'cat/'+cat+'/video/'+video);
var href = 'video/'+video;
if(cat && typeof cat != 'undefined'){
href = 'cat/'+cat+'/'+href;
}
$('.playBtn').attr('href', webSiteRootURL+href);
loadPlayLists();
});