mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Featured channel-changes
- Tooltip for better info - Removed pin from all other frontpage cards
This commit is contained in:
@@ -90,10 +90,11 @@ var Frontpage = {
|
|||||||
if(song_count > 4) {
|
if(song_count > 4) {
|
||||||
if(lists[x].pinned == 1) {
|
if(lists[x].pinned == 1) {
|
||||||
card.find(".pin").attr("style", "display:block;");
|
card.find(".pin").attr("style", "display:block;");
|
||||||
card.find(".card").attr("title", "Pinned!");
|
//card.find(".card").attr("title", "Featured list");
|
||||||
} else {
|
} else {
|
||||||
card.find(".pin").attr("style", "display:none;");
|
/*card.find(".pin").attr("style", "display:none;");
|
||||||
card.find(".card").attr("title", "");
|
card.find(".card").attr("title", "");*/
|
||||||
|
card.find(".pin").remove();
|
||||||
}
|
}
|
||||||
card.find(".chan-name").text(chan);
|
card.find(".chan-name").text(chan);
|
||||||
card.find(".chan-name").attr("title", chan);
|
card.find(".chan-name").attr("title", chan);
|
||||||
@@ -126,6 +127,13 @@ var Frontpage = {
|
|||||||
for(var x in options_list) {
|
for(var x in options_list) {
|
||||||
data[options_list[x]._id] = null;
|
data[options_list[x]._id] = null;
|
||||||
}
|
}
|
||||||
|
if($(".pin").length == 1 && !Helper.mobilecheck()) {
|
||||||
|
$($(".pin").parent().parent().parent()).tooltip({
|
||||||
|
delay: 5,
|
||||||
|
position: "top",
|
||||||
|
tooltip: "Featured playlist"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
var to_autocomplete = "input.autocomplete";
|
var to_autocomplete = "input.autocomplete";
|
||||||
//if(Helper.mobilecheck()) to_autocomplete = "input.mobile-search";
|
//if(Helper.mobilecheck()) to_autocomplete = "input.mobile-search";
|
||||||
@@ -315,6 +323,9 @@ var Frontpage = {
|
|||||||
$(".generate-channel-name").tooltip("remove");
|
$(".generate-channel-name").tooltip("remove");
|
||||||
$("#offline-mode").tooltip("remove");
|
$("#offline-mode").tooltip("remove");
|
||||||
$("#client-mode-button").tooltip("remove");
|
$("#client-mode-button").tooltip("remove");
|
||||||
|
if($(".pin").length == 1) {
|
||||||
|
$($(".pin").parent().parent().parent()).tooltip("remove");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
currently_showing_channels = 1;
|
currently_showing_channels = 1;
|
||||||
clearTimeout(retry_frontpage);
|
clearTimeout(retry_frontpage);
|
||||||
|
|||||||
Reference in New Issue
Block a user