From d2ff04848d3c638a23138e6a012870df010064d1 Mon Sep 17 00:00:00 2001 From: Alib Date: Fri, 26 Mar 2010 17:17:32 +0100 Subject: added stream buttons on epg --- js/istreamdev.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/js/istreamdev.js b/js/istreamdev.js index 20b89ed..80d7639 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -1023,6 +1023,16 @@ $('#epgdetails span.recButton a').tap(function(event) { gen_edittimer(id,name,active,channumber,channame,rec_date,starttime,endtime); return false; }); + +$('#epgdetails span.streamButton a').tap(function(event) { + event.preventDefault(); + json_start(this); + var url = $("#streamchannel").find('span[rel="url"]').text(); + var mode = $(this).attr('id'); + start_broadcast('tv',url,mode); + return false; +}); + //functions function gen_epgmenu() { gen_epgchanlist(); @@ -1208,6 +1218,12 @@ function get_epgdetails(channum,startingtime,day) { $('#epgdetails div[rel="dataholder"] span[rel="date"]').html(date); $('#epgdetails div[rel="dataholder"] span[rel="stime"]').html(stime); $('#epgdetails div[rel="dataholder"] span[rel="etime"]').html(etime); + $('#epgdetails div[rel="dataholder"] span[rel="url"]').html(streamdev_server + channum); + if ( data.program.running == "yes" ) { + $('#epgdetails #epgdetails_buttons').html('Edge 3G WifiRec.'); + } else { + $('#epgdetails #epgdetails_buttons').html('Rec.'); + } json_complete('#epgdetails','cube'); }); } -- cgit v1.2.3