mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Put minimum song-count on list to display on the frontpage to 5
This commit is contained in:
@@ -81,6 +81,7 @@ var Frontpage = {
|
|||||||
var song_count = lists[x].count;
|
var song_count = lists[x].count;
|
||||||
|
|
||||||
var card = pre_card.clone();
|
var card = pre_card.clone();
|
||||||
|
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", "Pinned!");
|
||||||
@@ -106,6 +107,7 @@ var Frontpage = {
|
|||||||
|
|
||||||
$("#channels").append(card.html());
|
$("#channels").append(card.html());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
num++;
|
num++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user