summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/istreamdev.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js
index 3cd0c50..3b6b6fc 100644
--- a/js/istreamdev.js
+++ b/js/istreamdev.js
@@ -1024,13 +1024,19 @@ var dayname = new Array( "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" );
}
function get_epg(channel,time,day,programs) {
+$('#epglist #ul_epglist').html('');
var dataString = 'action=getEpg&channel=' + channel + '&time=' + time + '&day=' + day + '&programs=' + programs;
- $.getJSON("bin/backend.php",
- dataString,
- function(data) {
+ $.getJSON("bin/backend.php",
+ dataString,
+ function(data) {
$.each(data.channel, function(i,channel){
- //TODO
+ $('#epglist #ul_epglist').append('<li class="sep">' + channel.name + '</li>');
+ $.each(channel.epg, function(j,epg){
+ $('#epglist #ul_epglist').append('<li><a href="#"><span class="epgtime">' + epg.time + '</span><span class="epgname">' + epg.title + '</span></a></li>');
+ });
});
+ json_complete('#epglist','cube');
+ });
}
// [/EPG SECTION]