From e3b61fcf61d809dfecdf54ae6664e71ee1c65b47 Mon Sep 17 00:00:00 2001 From: Alib Date: Thu, 25 Mar 2010 08:49:14 +0100 Subject: show full day epg --- js/istreamdev.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'js') diff --git a/js/istreamdev.js b/js/istreamdev.js index 315ebff..80c51f0 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -975,8 +975,10 @@ $('.submit_epg').tap(function(event) { if ( channel == "all" ) { programs = 2; } - else { - programs = 10; + else if ( time == "" ) { + programs = "day"; + } else { + programs = 20; } get_epg(channel,time,day,programs); $(this).removeClass('active'); @@ -1029,10 +1031,21 @@ var dataString = 'action=getEpg&channel=' + channel + '&time=' + time + '&day=' $.getJSON("bin/backend.php", dataString, function(data) { + var k=1; $.each(data.channel, function(i,channel){ + k++; $('#epglist #ul_epglist').append('
  • ' + channel.name + '
  • '); $.each(channel.epg, function(j,epg){ - $('#epglist #ul_epglist').append('
  • ' + epg.time + '' + epg.title + '
  • '); + if ( k > 10 ) { + togglestatus = 'toggle'; + } + else + { + togglestatus = ''; + } + $('#epglist #ul_epglist').append('
  • ' + epg.time + '' + epg.title + '
  • '); + + k++; }); }); json_complete('#epglist','cube'); -- cgit v1.2.3