From 2d60cfe61ac902134f47595659659f618444bc24 Mon Sep 17 00:00:00 2001 From: Alib Date: Fri, 26 Mar 2010 15:59:39 +0100 Subject: added rec from epg --- js/istreamdev.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'js') diff --git a/js/istreamdev.js b/js/istreamdev.js index 4785d12..d75d39b 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -1009,6 +1009,20 @@ day = $('#epglist div[rel="dataholder"] span[rel="day"]').text(); get_epgdetails(channum,startingtime,day); }); +$('#epgdetails span.recButton a').tap(function(event) { + event.preventDefault(); + json_start(this); + var id = "new"; + var active= 1; + var name = $("#epgdetails").find('span[class="name_now"]').text(); + var channumber = $("#epgdetails" ).find('span[rel="number"]').text(); + var channame = $("#epgdetails").find('span[rel="channame"]').text(); + var rec_date = $("#epgdetails").find('span[rel="date"]').text(); + var starttime = $("#epgdetails").find('span[rel="stime"]').text(); + var endtime = $("#epgdetails").find('span[rel="etime"]').text(); + gen_edittimer(id,name,active,channumber,channame,rec_date,starttime,endtime); + return false; +}); //functions function gen_epgmenu() { gen_epgchanlist(); -- cgit v1.2.3 From ee54b02dd461419a1ae74e9cab55792d6db8eb77 Mon Sep 17 00:00:00 2001 From: Alib Date: Fri, 26 Mar 2010 16:28:12 +0100 Subject: almost done for epg --- js/istreamdev.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js') diff --git a/js/istreamdev.js b/js/istreamdev.js index d75d39b..f242bd8 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -1002,7 +1002,7 @@ get_epg("all","now","0","2"); $('#epglist #ul_epglist a').tap(function(event) { event.preventDefault(); json_start(this); -channum = $(this).find('span[rel="channum"]').text(); +channum = $(this).attr("rel"); epgtime = $(this).find('span[class="epgtime"]').text(); startingtime = epgtime.substring(0,2) + '' + epgtime.substring(3); day = $('#epglist div[rel="dataholder"] span[rel="day"]').text(); @@ -1151,7 +1151,7 @@ function parse_epg(data,selectedvalue,type,day){ { togglestatus = ''; } - $('#epglist #ul_epglist').append('
  • ' + epg.time + '' + epg.title + '' + channel.number + '
  • '); + $('#epglist #ul_epglist').append('
  • ' + epg.time + '' + epg.title + '
  • '); k++; }); -- cgit v1.2.3 From 26de7730dd148d08c10af1b1b40b34b7d47a2f3d Mon Sep 17 00:00:00 2001 From: Alib Date: Fri, 26 Mar 2010 16:40:25 +0100 Subject: date in page title for epg --- js/istreamdev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/istreamdev.js b/js/istreamdev.js index f242bd8..20b89ed 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -1105,7 +1105,7 @@ function parse_epg(data,selectedvalue,type,day){ var date_month = str_pad(date.getMonth()+1,2,'0','STR_PAD_LEFT'); var date_day = str_pad(date.getDate(),2,'0','STR_PAD_LEFT'); var epgdate = date_year + "-" + date_month + "-" + date_day; - $('#epglist #ul_epglist').append('
  • ' + epgdate + '
  • '); + $('#epglist h1').html(epgdate); if ( data.category.length > 1 ) { $('#epglist #epg_selector').append(''); -- cgit v1.2.3