Browse Source

Update functions.js

Updated buildYoutubeLink and buildCalendarMetadata to respect new show icon setting. Default: true.
Jesse Hickman 4 years ago
parent
commit
5af8552627
1 changed files with 3 additions and 3 deletions
  1. 3 3
      js/functions.js

+ 3 - 3
js/functions.js

@@ -6964,8 +6964,8 @@ function buildYoutubeLink(title){
 		`;
 	}
 }
-function buildPVRLink(href, ico = "", frame = ""){
-	if (href){
+function buildPVRLink(href, ico = "", frame = "", showLink = true){
+	if (href && showLink){
 		var styleOverride = `width:55px;height:44px;background-image: url(${ico});background-repeat:no-repeat;background-size:25px;background-position:center;`;
 		if (frame){
 			return `
@@ -7008,7 +7008,7 @@ function buildCalendarMetadata(array){
 	                <h2 class="m-b-0 font-medium pull-right text-right">
 						`+array.topTitle+`<button type="button" class="btn bg-org btn-circle close-popup m-l-10"><i class="fa fa-times"></i> </button><br>
 						<small class="m-t-0 text-white">`+array.bottomTitle+`</small><br>
-						`+buildPVRLink(array.href, array.icon)+buildYoutubeLink(array.topTitle)+`
+						`+buildPVRLink(array.href, array.icon, array.frame, array.showLink)+buildYoutubeLink(array.topTitle)+`
 					</h2>
 	            </div>
 				<div class="genre-list p-10">`+genres+`</div>