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

allow forcing of category-links in youphpflix

This commit is contained in:
Vinzenz Hersche 2018-05-25 02:44:42 +02:00
parent 926b292ac5
commit 097eea38df
3 changed files with 11 additions and 7 deletions

View file

@ -75,7 +75,6 @@ $(function () {
$(".thumbsImage").on("click", function () {
var img = $(this).find(".thumbsGIF").attr('src');
videos_id = $(this).attr('videos_id');
if (!img || true) {
img = $(this).attr('poster');
}
@ -112,8 +111,11 @@ $(function () {
});
video = $(this).attr('video');
cat = $(this).attr('cat');
if(typeof cat == 'undefined'){
cat = $(this).find('.tile__cat').attr('cat');
}
var href = 'video/' + video;
if (cat && typeof cat != 'undefined') {
if ((cat && typeof cat != 'undefined')||(forceCatLinks)) {
href = 'cat/' + cat + '/' + href;
}
$('.playBtn').attr('href', webSiteRootURL + href);