From 1237d5c0aacc7082d8fb7eca1c52f4c0edb0ddd0 Mon Sep 17 00:00:00 2001 From: Alib Date: Sat, 27 Mar 2010 11:17:55 +0100 Subject: channel link on epg all --- js/istreamdev.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'js') diff --git a/js/istreamdev.js b/js/istreamdev.js index 21eedf5..4aae3f8 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -999,7 +999,7 @@ json_start(this); get_epg("all","now","0","2"); }); -$('#epglist #ul_epglist a').tap(function(event) { +$('#epglist #ul_epglist a.epgdetailsbutton').tap(function(event) { event.preventDefault(); json_start(this); channum = $(this).attr("rel"); @@ -1009,6 +1009,14 @@ day = $('#epglist div[rel="dataholder"] span[rel="day"]').text(); get_epgdetails(channum,startingtime,day); }); +$('#epglist #ul_epglist a[rel="epgchan"]').tap(function(event) { +event.preventDefault(); +json_start(this); +channum = $(this).find('span').text(); +day = $('#epglist div[rel="dataholder"] span[rel="day"]').text(); +get_epg(channum,"",day,"day") +}); + $('#epgdetails span.recButton a').tap(function(event) { event.preventDefault(); json_start(this); @@ -1100,7 +1108,6 @@ var dataString = 'action=getEpg&channel=' + channel + '&time=' + time + '&day=' type = 'chan'; parse_epg(data,channel,type,day); } - $('#epglist li[rel="toggle"]').hide(); }); } @@ -1152,7 +1159,7 @@ function parse_epg(data,selectedvalue,type,day){ togglestatus = ''; } k++; - $('#epglist #ul_epglist').append('
  • ' + channel.name + '
  • '); + $('#epglist #ul_epglist').append('
  • ' + channel.number + '' + ' - ' + channel.name + '
  • '); $.each(channel.epg, function(j,epg){ if ( k > 10 ) { togglestatus = 'toggle'; @@ -1161,7 +1168,7 @@ function parse_epg(data,selectedvalue,type,day){ { togglestatus = ''; } - $('#epglist #ul_epglist').append('
  • ' + epg.time + '' + epg.title + '
  • '); + $('#epglist #ul_epglist').append('
  • ' + epg.time + '' + epg.title + '
  • '); k++; }); -- cgit v1.2.3