mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Rewriting stuff
This commit is contained in:
@@ -23,7 +23,12 @@ var Frontpage = {
|
||||
msg
|
||||
]);
|
||||
Frontpage.all_channels = msg.channels;
|
||||
Frontpage.populate_channels(msg.channels, true);
|
||||
if(msg.channels.length == 0) {
|
||||
$("#preloader").css("display", "none");
|
||||
$("#channel-list-container").append("<p>No channels yet</p>");
|
||||
} else {
|
||||
Frontpage.populate_channels(msg.channels, true);
|
||||
}
|
||||
Frontpage.set_viewers(msg.viewers);
|
||||
},
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ var Player = {
|
||||
np: {},
|
||||
|
||||
youtube_listener: function(obj) {
|
||||
Helper.log(["object", obj]);
|
||||
var state;
|
||||
if(embed && obj.np) {
|
||||
if(window.parentWindow && window.parentOrigin) {
|
||||
@@ -42,7 +43,6 @@ var Player = {
|
||||
|
||||
}
|
||||
Helper.log(["video_id variable: " + video_id]);
|
||||
|
||||
if(!obj.np){
|
||||
$('#song-title').html("Empty channel. Add some songs!");
|
||||
document.title = "Zoff - the shared YouTube based radio";
|
||||
|
||||
Reference in New Issue
Block a user