mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed issue with viewing all channels on the frontpage
This commit is contained in:
2
server/public/assets/dist/main.min.js
vendored
2
server/public/assets/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -22,10 +22,9 @@ var Frontpage = {
|
|||||||
Helper.log("Frontpage fetch");
|
Helper.log("Frontpage fetch");
|
||||||
Helper.log(msg);
|
Helper.log(msg);
|
||||||
Helper.log("------------");
|
Helper.log("------------");
|
||||||
Frontpage.all_channels = msg.channels;
|
Frontpage.all_channels = msg;
|
||||||
Frontpage.populate_channels(msg.channels, true);
|
Frontpage.populate_channels(msg, true);
|
||||||
|
//Frontpage.set_viewers(msg.viewers);
|
||||||
Frontpage.set_viewers(msg.viewers);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
populate_channels: function(lists, popular)
|
populate_channels: function(lists, popular)
|
||||||
@@ -275,7 +274,7 @@ var Frontpage = {
|
|||||||
url: "/api/frontpages",
|
url: "/api/frontpages",
|
||||||
method: "get",
|
method: "get",
|
||||||
success: function(response){
|
success: function(response){
|
||||||
Frontpage.populate_channels(response, true);
|
Frontpage.frontpage_function(response);
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
Materialize.toast("Couldn't fetch lists, trying again in 3 seconds..", 3000, "red lighten connect_error");
|
Materialize.toast("Couldn't fetch lists, trying again in 3 seconds..", 3000, "red lighten connect_error");
|
||||||
|
|||||||
Reference in New Issue
Block a user